|
| 1 | + |
| 2 | +name: "Code Scanning - Action" |
| 3 | + |
| 4 | +on: [push, pull_request, workflow_dispatch] |
| 5 | + |
| 6 | +jobs: |
| 7 | + CodeQL-Build: |
| 8 | + # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest |
| 9 | + runs-on: ubuntu-latest |
| 10 | + |
| 11 | + permissions: |
| 12 | + # required for all workflows |
| 13 | + security-events: write |
| 14 | + |
| 15 | + # only required for workflows in private repositories |
| 16 | + actions: read |
| 17 | + contents: read |
| 18 | + |
| 19 | + steps: |
| 20 | + - name: Checkout repository |
| 21 | + uses: actions/checkout@v3 |
| 22 | + |
| 23 | + # Initializes the CodeQL tools for scanning. |
| 24 | + - name: Initialize CodeQL |
| 25 | + uses: github/codeql-action/init@v2 |
| 26 | + # Override language selection by uncommenting this and choosing your languages |
| 27 | + # with: |
| 28 | + # languages: go, javascript, csharp, python, cpp, java, ruby |
| 29 | + |
| 30 | + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). |
| 31 | + # If this step fails, then you should remove it and run the build manually (see below). |
| 32 | + - name: Autobuild |
| 33 | + uses: github/codeql-action/autobuild@v2 |
| 34 | + |
| 35 | + # ℹ️ Command-line programs to run using the OS shell. |
| 36 | + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
| 37 | + |
| 38 | + # ✏️ If the Autobuild fails above, remove it and uncomment the following |
| 39 | + # three lines and modify them (or add more) to build your code if your |
| 40 | + # project uses a compiled language |
| 41 | + |
| 42 | + #- run: | |
| 43 | + # make bootstrap |
| 44 | + # make release |
| 45 | + |
| 46 | + - name: Perform CodeQL Analysis |
| 47 | + uses: github/codeql-action/analyze@v2 |
0 commit comments