codeql.yml 961 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: "CodeQL Advanced"
  2. on:
  3. push:
  4. branches: [ "main" ]
  5. pull_request:
  6. branches: [ "main" ]
  7. jobs:
  8. analyze:
  9. name: Analyze project
  10. runs-on: ubuntu-latest
  11. permissions:
  12. # required for all workflows
  13. security-events: write
  14. # required to fetch internal or private CodeQL packs
  15. packages: read
  16. # only required for workflows in private repositories
  17. actions: read
  18. contents: read
  19. strategy:
  20. fail-fast: false
  21. steps:
  22. - name: Checkout repository
  23. uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
  24. # Initializes the CodeQL tools for scanning.
  25. - name: Initialize CodeQL
  26. uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
  27. with:
  28. languages: go
  29. build-mode: autobuild
  30. - name: Perform CodeQL Analysis
  31. uses: github/codeql-action/analyze@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11