File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " CodeQL Advanced"
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ pull_request :
7+ branches : ["main"]
8+ paths-ignore :
9+ - " **/*.md"
10+ schedule :
11+ - cron : " 28 23 * * *" # Runs every day at 23:28 UTC.
12+
13+ jobs :
14+ analyze :
15+ name : Analyze (${{ matrix.language }})
16+ runs-on : hl-sdk-py-lin-md
17+ permissions :
18+ contents : read
19+ # required for all workflows
20+ security-events : write
21+ # required to fetch internal or private CodeQL packs
22+ packages : read
23+
24+ strategy :
25+ fail-fast : false
26+ matrix :
27+ include :
28+ - language : actions
29+ build-mode : none
30+ - language : python
31+ build-mode : none
32+ steps :
33+ - name : Checkout repository
34+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
35+
36+ - name : Harden the runner (Audit all outbound calls)
37+ uses : step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
38+ with :
39+ egress-policy : audit
40+
41+ - name : Initialize CodeQL
42+ uses : github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.3.5
43+ with :
44+ languages : ${{ matrix.language }}
45+ build-mode : ${{ matrix.build-mode }}
46+ queries : security-extended
47+ dependency-caching : true
48+
49+ - name : Set up Python
50+ if : matrix.language == 'python'
51+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
52+ with :
53+ python-version : " 3.13"
54+
55+ - name : Install uv
56+ if : matrix.language == 'python'
57+ uses : astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
58+ with :
59+ enable-cache : true
60+
61+ - name : Install dependencies
62+ if : matrix.language == 'python'
63+ run : uv sync --all-extras --dev
64+
65+ - name : Perform CodeQL Analysis
66+ uses : github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.3.5
67+ with :
68+ category : " /language:${{matrix.language}}"
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
2525- chore: update GitHub Actions runners from ubuntu-latest to hl-sdk-py-lin-md (#2021 )
2626- Refactored the Advanced Issue Template to V2 with stricter prerequisites and a focus on architectural design (#2016 ).
2727- Refactored the Advanced Issue Template to ensure PR-level quality checklists do not block maintainers during issue creation (#2036 )
28+ - Added CodeQL workflow (#2084 )
2829- chore: add concurrency to unit and integration tests (#2071 )
2930- Add automated label sync workflow to propagate labels from linked issues to pull requests (#1716 )
3031- chore: update spam list (#2035 )
You can’t perform that action at this time.
0 commit comments