From 5ab79a2386fe44ee8802ec7586747548dcf80480 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Wed, 13 Aug 2025 09:34:57 -0700 Subject: [PATCH] Add CodeQL workflow --- .github/workflows/codeql.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..791ab8ee --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,35 @@ +name: CodeQL + +on: + pull_request: + branches: + - main + push: + branches: + - main + schedule: + - cron: "47 8 * * 4" # weekly at 08:47 UTC on Thursday + +permissions: + contents: read + +jobs: + analyze: + name: Analyze GitHub Actions + permissions: + contents: read + actions: read # for github/codeql-action/init to get workflow details + security-events: write # for github/codeql-action/analyze to upload SARIF results + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Initialize CodeQL + uses: github/codeql-action/init@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8 + with: + languages: actions + + - name: Perform CodeQL analysis + uses: github/codeql-action/analyze@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8 + with: + category: "/language:actions"