From bc4ca15d43623d8eeeb4271175d89f2914b1ca96 Mon Sep 17 00:00:00 2001 From: Nelson Spence Date: Wed, 11 Mar 2026 14:59:13 -0500 Subject: [PATCH 1/6] 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 --- .github/workflows/codeql.yml | 40 ++++++++++++++++++++++++++++ .github/workflows/lean_action_ci.yml | 7 +++++ .github/workflows/scorecard.yml | 24 +++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 .github/workflows/codeql.yml create mode 100644 .github/workflows/scorecard.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..8f787bc --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,40 @@ +name: CodeQL Analysis + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: "30 5 * * 1" # Monday 05:30 UTC + +concurrency: + group: codeql-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + # CONTRACT: org ruleset requires this exact check name 'codeql' + # Do NOT add a 'name:' override or matrix strategy + codeql: + runs-on: ubuntu-latest + timeout-minutes: 30 + permissions: + actions: read + security-events: write + contents: read + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Initialize CodeQL + uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 + with: + languages: javascript-typescript + queries: +security-extended + - name: Autobuild + uses: github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 + with: + category: "/language:javascript-typescript" diff --git a/.github/workflows/lean_action_ci.yml b/.github/workflows/lean_action_ci.yml index 9f3561f..eca64ec 100644 --- a/.github/workflows/lean_action_ci.yml +++ b/.github/workflows/lean_action_ci.yml @@ -5,10 +5,17 @@ on: pull_request: workflow_dispatch: +permissions: {} + +concurrency: + group: lean-ci-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: ELAN_HOME: /home/runner/.elan jobs: + # CONTRACT: org ruleset requires this exact check name 'build' build: runs-on: ubuntu-latest permissions: diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml new file mode 100644 index 0000000..91a81ae --- /dev/null +++ b/.github/workflows/scorecard.yml @@ -0,0 +1,24 @@ +name: OpenSSF Scorecard + +on: + push: + branches: [main] + schedule: + - cron: "15 6 * * 1" # Monday 06:15 UTC + workflow_dispatch: + +permissions: {} + +concurrency: + group: scorecard + cancel-in-progress: false + +jobs: + scorecard: + uses: Project-Navi/.github/.github/workflows/scorecard.yml@6c4c2d8f200b1b9c3bd651ebc297425e45d5934e + permissions: + contents: read + security-events: write + id-token: write + actions: read + secrets: inherit From 8bfdb973de6fee277009301fb5c97e7ddba9b6d5 Mon Sep 17 00:00:00 2001 From: Nelson Spence Date: Wed, 11 Mar 2026 15:55:13 -0500 Subject: [PATCH 2/6] chore: trigger navi-bot approval From 2ddd98464c2a22b88a7b07e4dcb7f389e5a5146f Mon Sep 17 00:00:00 2001 From: Nelson Spence Date: Wed, 11 Mar 2026 16:01:48 -0500 Subject: [PATCH 3/6] chore: retrigger bot after workflow reload From 50e7a475a6d0194034fb5fa8a1a99f9e4e838261 Mon Sep 17 00:00:00 2001 From: Nelson Spence Date: Wed, 11 Mar 2026 16:09:53 -0500 Subject: [PATCH 4/6] chore: trigger CI re-evaluation Empty commit to trigger navi-bot approval after workflow fix. From f2f15bf9d2128c2406f620640bb22b02c868720c Mon Sep 17 00:00:00 2001 From: Nelson Spence Date: Wed, 11 Mar 2026 16:16:29 -0500 Subject: [PATCH 5/6] chore: trigger CI re-evaluation From 4b1942d77efec5d60846270d515ae92b9d9190f6 Mon Sep 17 00:00:00 2001 From: Nelson Spence Date: Wed, 11 Mar 2026 16:16:42 -0500 Subject: [PATCH 6/6] chore: trigger CI re-evaluation