From e715f1ba063b82e42f429681150664dcc62b2051 Mon Sep 17 00:00:00 2001 From: vamsi-cf <104775415+forged-request@users.noreply.github.com> Date: Tue, 29 Jul 2025 17:30:12 +0200 Subject: [PATCH] chore(ci): [SECURITY-1117] Enable CodeQL scans for GitHub workflow Enable CodeQL scans for GitHub workflow. For more details on why we do this, please refer to https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/ After the merge, navigate to the code-scanning findings available under the security tab --> code-scanning --- .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..40cdf73 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,32 @@ +--- +name: "CodeQL Scan for GitHub Actions Workflows" + +on: + push: + branches: [master] + paths: [".github/workflows/**"] + pull_request: + branches: [master] + 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 \ No newline at end of file