From 8e902a106eaa96b203250bf1da6ecd23bc540f8e Mon Sep 17 00:00:00 2001 From: vamsi-cf <104775415+forged-request@users.noreply.github.com> Date: Tue, 22 Jul 2025 12:43:29 +0200 Subject: [PATCH] Add CodeQL workflow for GitHub Actions --- .github/workflows/codeql.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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 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