Skip to content

Commit 9efa9f9

Browse files
ci: unified org settings — lean tier contract (#7)
* ci: add CodeQL + Scorecard, harden lean CI for org ruleset contract Phase 5 of unified org settings: lean tier repos require check names `build` and `codeql` to match the org ruleset contract. Adds CodeQL (javascript-typescript for docs JS), OpenSSF Scorecard via centralized caller, and top-level permissions/concurrency to lean_action_ci.yml. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: trigger navi-bot approval * chore: retrigger bot after workflow reload * chore: trigger CI re-evaluation Empty commit to trigger navi-bot approval after workflow fix. * chore: trigger CI re-evaluation * chore: trigger CI re-evaluation --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b107f91 commit 9efa9f9

3 files changed

Lines changed: 71 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CodeQL Analysis
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: "30 5 * * 1" # Monday 05:30 UTC
10+
11+
concurrency:
12+
group: codeql-${{ github.head_ref || github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
# CONTRACT: org ruleset requires this exact check name 'codeql'
20+
# Do NOT add a 'name:' override or matrix strategy
21+
codeql:
22+
runs-on: ubuntu-latest
23+
timeout-minutes: 30
24+
permissions:
25+
actions: read
26+
security-events: write
27+
contents: read
28+
steps:
29+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
32+
with:
33+
languages: javascript-typescript
34+
queries: +security-extended
35+
- name: Autobuild
36+
uses: github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
37+
- name: Perform CodeQL Analysis
38+
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
39+
with:
40+
category: "/language:javascript-typescript"

.github/workflows/lean_action_ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@ on:
55
pull_request:
66
workflow_dispatch:
77

8+
permissions: {}
9+
10+
concurrency:
11+
group: lean-ci-${{ github.head_ref || github.ref }}
12+
cancel-in-progress: true
13+
814
env:
915
ELAN_HOME: /home/runner/.elan
1016

1117
jobs:
18+
# CONTRACT: org ruleset requires this exact check name 'build'
1219
build:
1320
runs-on: ubuntu-latest
1421
permissions:

.github/workflows/scorecard.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: OpenSSF Scorecard
2+
3+
on:
4+
push:
5+
branches: [main]
6+
schedule:
7+
- cron: "15 6 * * 1" # Monday 06:15 UTC
8+
workflow_dispatch:
9+
10+
permissions: {}
11+
12+
concurrency:
13+
group: scorecard
14+
cancel-in-progress: false
15+
16+
jobs:
17+
scorecard:
18+
uses: Project-Navi/.github/.github/workflows/scorecard.yml@6c4c2d8f200b1b9c3bd651ebc297425e45d5934e
19+
permissions:
20+
contents: read
21+
security-events: write
22+
id-token: write
23+
actions: read
24+
secrets: inherit

0 commit comments

Comments
 (0)