7 # The branches below must be a subset of the branches above
15 runs-on: ubuntu-latest
19 - name: Setup Java JDK
20 uses: actions/setup-java@v1
24 - name: Checkout repository
25 uses: actions/checkout@v2
27 # We must fetch at least the immediate parents so that if this is
28 # a pull request then we can checkout the head.
31 # If this run was triggered by a pull request event, then checkout
32 # the head of the pull request instead of the merge commit.
33 - run: git checkout HEAD^2
34 if: ${{ github.event_name == 'pull_request' }}
36 # Initializes the CodeQL tools for scanning.
37 - name: Initialize CodeQL
38 uses: github/codeql-action/init@v1
39 # Override language selection by uncommenting this and choosing your languages
41 # languages: go, javascript, csharp, python, cpp, java
43 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
44 # If this step fails, then you should remove it and run the build manually (see below)
46 uses: github/codeql-action/autobuild@v1
48 # âšī¸ Command-line programs to run using the OS shell.
49 # đ https://git.io/JvXDl
51 # âī¸ If the Autobuild fails above, remove it and uncomment the following three lines
52 # and modify them (or add more) to build your code if your project
53 # uses a compiled language
59 - name: Perform CodeQL Analysis
60 uses: github/codeql-action/analyze@v1