Skip to content

Merge pull request #1177 from felddy/prerelease/13.337.0 #2400

Merge pull request #1177 from felddy/prerelease/13.337.0

Merge pull request #1177 from felddy/prerelease/13.337.0 #2400

---
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: CodeQL
on:
merge_group:
types:
- checks_requested
pull_request:
# The branches here must be a subset of the ones in the push key
branches:
- develop
- develop-prerelease
push:
# Dependabot triggered push events have read-only access, but uploading code
# scanning requires write access.
branches-ignore:
- dependabot/**
schedule:
- cron: '31 7 * * 2'
permissions:
actions: read
contents: read
jobs:
diagnostics:
name: Run Diagnostics
uses: felddy/reusable-workflows/.github/workflows/diagnostics.yml@v2
analyze:
name: Analyze
needs:
- diagnostics
runs-on: ubuntu-latest
permissions:
# actions/checkout needs this to fetch code
contents: read
# required for all workflows
security-events: write
strategy:
fail-fast: false
matrix:
language: ['javascript', 'python']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript',
# 'python', 'ruby' ] Learn more about CodeQL language support at
# https://git.io/codeql-language-support
steps:
- name: Harden Runner
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # tag=v2.11.0
with:
# TODO: change to 'egress-policy: block' after couple of runs
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # tag=codeql-bundle-v3.28.10
with:
languages: ${{ matrix.language }}
# Autobuild attempts to build any compiled languages (C/C++, C#, or
# Java). If this step fails, then you should remove it and run the build
# manually (see below).
- name: Autobuild
uses: github/codeql-action/autobuild@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # tag=codeql-bundle-v3.28.10
# ℹ️ Command-line programs to run using the OS shell. 📚
# https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following
# three lines and modify them (or add more) to build your code if your
# project uses a compiled language
# - run: |
# make bootstrap
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # tag=codeql-bundle-v3.28.10