diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..57b403a --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,32 @@ +--- +name: "CodeQL Scan for GitHub Actions Workflows" + +on: + push: + branches: [main] + paths: [".github/workflows/**"] + pull_request: + branches: [main] + paths: [".github/workflows/**"] + +jobs: + analyze: + name: Analyze GitHub Actions workflows + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + steps: + - uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: actions + + - name: Run CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: actions