Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -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