codeql.yml 980 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: "CodeQL Advanced"
  2. on:
  3. push:
  4. branches: [ "main" ]
  5. pull_request:
  6. branches: [ "main" ]
  7. permissions:
  8. contents: read
  9. jobs:
  10. analyze:
  11. name: Analyze project
  12. runs-on: ubuntu-latest
  13. permissions:
  14. # required for all workflows
  15. security-events: write
  16. packages: read
  17. actions: read
  18. strategy:
  19. fail-fast: false
  20. steps:
  21. - uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
  22. with:
  23. egress-policy: audit
  24. - name: Checkout repository
  25. uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
  26. # Initializes the CodeQL tools for scanning.
  27. - name: Initialize CodeQL
  28. uses: github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
  29. with:
  30. languages: go
  31. build-mode: autobuild
  32. - name: Perform CodeQL Analysis
  33. uses: github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2