From cf8ea0ed44ac019bd1c3db45e10cfa289ade0072 Mon Sep 17 00:00:00 2001 From: "ghas-management[bot]" <255882726+ghas-management[bot]@users.noreply.github.com> Date: Sat, 2 May 2026 03:05:33 +0000 Subject: [PATCH] Enable CodeQL advanced setup Adds CodeQL workflow for security scanning --- .github/workflows/codeql-analysis.yml | 57 +++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..c8a9047 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,57 @@ +# ghas-management-template-version: 1.1 + +name: "CodeQL Advanced Security Scanning" + +on: + # Initial proposal is daily runs to avoid overloading runners, teams can uncomment below to enable on push and PR events + # push: + # branches: [ "main", "master" ] + # pull_request: + # branches: [ "main", "master" ] + schedule: + - cron: '12 22 * * *' # Randomized per repository, daily runs somewhere between 22:00 and 06:00 UTC + workflow_dispatch: + +env: + ARTIFACTORY_PASSWORD: ${{ secrets.EE_ARTIFACTORY_PASSWORD }} + ARTIFACTORY_URL: ${{ secrets.EE_ARTIFACTORY_URL }} + ARTIFACTORY_USERNAME: ${{ secrets.EE_ARTIFACTORY_USERNAME }} + VAULT_ROLE_ID: ${{ secrets.VAULT_ROLE_ID }} + VAULT_SECRET_ID: ${{ secrets.VAULT_SECRET_ID }} + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + packages: read + + strategy: + fail-fast: false + matrix: + include: + - language: actions + build-mode: none + steps: + # Action SHAs below are placeholder tokens substituted by the workflow + # generator (scripts/lib/codeql_workflow_generator.py) at render time. + # The authoritative SHA for each action lives in the sentinel registry: + # .github/workflows/pinned-actions-registry.yml + - name: Checkout repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + + - name: Initialize CodeQL + uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 + with: + category: "/language:${{matrix.language}}" + threads: 2