-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (83 loc) · 3.05 KB
/
Copy pathcodeql.yml
File metadata and controls
93 lines (83 loc) · 3.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# KFM CI workflow: CodeQL static analysis
# Status: implementation-bearing security analysis; non-authoritative for release.
#
# Responsibility:
# - Run GitHub CodeQL analysis for repository-owned Python and
# JavaScript/TypeScript source on pull requests, main pushes, a weekly schedule,
# and explicit maintainer dispatch.
# Authority:
# - A successful run means the configured CodeQL queries completed for the
# checked revision. It is not proof that the repository is vulnerability-free,
# release approval, publication authority, or a substitute for threat modeling,
# dependency scanning, secret scanning, runtime controls, or human review.
# Pull-request posture:
# - Uses pull_request, never pull_request_target. Untrusted code is analyzed with
# the minimum token permissions required to upload code-scanning results.
# Network:
# - GitHub-hosted actions and CodeQL bundles may use GitHub-managed network
# access. This workflow does not call KFM source systems or public APIs.
# Outputs:
# - Code-scanning SARIF/results managed by GitHub. No KFM proof, receipt, release,
# lifecycle, catalog, triplet, or published artifact is created by this workflow.
# Compatibility:
# - Workflow name `codeql` and job id `codeql-scan` are retained because
# branch-protection dependencies have not been verified.
name: codeql
on:
pull_request:
push:
branches:
- main
schedule:
- cron: "23 9 * * 3"
workflow_dispatch:
permissions:
actions: read
contents: read
packages: read
pull-requests: read
security-events: write
concurrency:
group: codeql-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
codeql-scan:
name: codeql-scan (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
language:
- python
- javascript-typescript
steps:
- name: Check out analyzed revision
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
with:
languages: ${{ matrix.language }}
build-mode: none
queries: security-extended
- name: Analyze source
uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
with:
category: "/language:${{ matrix.language }}"
- name: Record analysis boundary
if: ${{ always() }}
shell: bash
run: |
set -euo pipefail
{
echo "## CodeQL — ${LANGUAGE}"
echo
echo "CodeQL was configured for the security-extended query suite."
echo
echo "A successful job means analysis completed for this language and revision."
echo "It does not prove vulnerability absence or authorize release or publication."
} >> "${GITHUB_STEP_SUMMARY}"
env:
LANGUAGE: ${{ matrix.language }}