diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000..7162a83a8 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,35 @@ +# CodeQL SAST analysis for the .github standards repository. +# This repo contains GitHub Actions workflows, so 'actions' is the configured language. +# Standard: https://github.com/petry-projects/.github/blob/main/standards/ci-standards.md#2-codeql-analysis-codeqlyml +name: CodeQL Analysis + +permissions: {} + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: '0 17 * * 5' # Weekly scan (Friday 12:00 PM EST / 17:00 UTC) + +jobs: + analyze: + name: Analyze (actions) + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: actions + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: /language:actions