codeql.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: "Code Scanning - Action"
  2. on:
  3. pull_request:
  4. concurrency:
  5. group: ${{ github.head_ref }}/codeql
  6. cancel-in-progress: true
  7. jobs:
  8. CodeQL-Build:
  9. # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
  10. runs-on: ubuntu-latest
  11. permissions:
  12. # required for all workflows
  13. security-events: write
  14. steps:
  15. - name: Checkout repository
  16. uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
  17. # Initializes the CodeQL tools for scanning.
  18. - name: Initialize CodeQL
  19. uses: github/codeql-action/init@v3
  20. # Override language selection by uncommenting this and choosing your languages
  21. with:
  22. languages: go
  23. # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
  24. # If this step fails, then you should remove it and run the build manually (see below).
  25. - name: Autobuild
  26. uses: github/codeql-action/autobuild@v3
  27. # ℹ️ Command-line programs to run using the OS shell.
  28. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
  29. # ✏️ If the Autobuild fails above, remove it and uncomment the following
  30. # three lines and modify them (or add more) to build your code if your
  31. # project uses a compiled language
  32. #- run: |
  33. # make bootstrap
  34. # make release
  35. - name: Perform CodeQL Analysis
  36. uses: github/codeql-action/analyze@v3