You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3 KiB

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