Skip to content

Commit b8c2ba7

Browse files
fix(ci): repoint codeql-action at a SHA that exists (#38)
`github/codeql-action@29b1f65c1f735799893313399435a59f54045865` is pinned here but **exists in no repository** — the GitHub API returns 422 for it. CodeQL therefore could not start: the run graph fails to build and the job reports `startup_failure`, so this repository has had **no CodeQL scanning at all**. Repointed at `4187e74d05793876e9989daffde9c3e66b4acd07`, which is what the `v3` tag currently resolves to (v3.37.3), verified against the API. Found while auditing the estate: the same non-existent SHA was pinned in **104 repositories**, so CodeQL was dead across nearly all of them. ---- ## Summary by Gitar - **CI and workflows:** - Repointed `codeql-action` to a valid SHA `4187e74d` and added new `codeql.yml` workflow - Added `actions: read` permissions across multiple workflow files for estate-wide security compliance - **Project configuration:** - Updated `guix.scm` package definition from `live-files` to `squisher-corpus` - Removed duplicate `GOVERNANCE.adoc` file in favor of `GOVERNANCE.md` <sub>This will update automatically on new commits.</sub> --------- Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent c442fa8 commit b8c2ba7

15 files changed

Lines changed: 63 additions & 168 deletions

.github/workflows/boj-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ jobs:
1717
curl -X POST "http://boj-server.local:7700/cartridges/ssg-mcp/invoke" -H "Content-Type: application/json" -d "{\"repo\": \"${{ github.repository }}\", \"branch\": \"${{ github.ref_name }}\", \"engine\": \"casket\\"}"}
1818
continue-on-error: true
1919
permissions:
20+
actions: read
2021
contents: read

.github/workflows/casket-pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
workflow_dispatch:
88

99
permissions:
10+
actions: read
1011
contents: read
1112
pages: write
1213
id-token: write

.github/workflows/codeql.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
name: CodeQL
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
schedule:
10+
- cron: '0 0 * * 0'
11+
12+
permissions:
13+
actions: read
14+
contents: read
15+
security-events: write
16+
17+
jobs:
18+
analyze:
19+
name: CodeQL Analysis
20+
runs-on: ubuntu-latest
21+
permissions:
22+
actions: read
23+
contents: read
24+
security-events: write
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
include:
29+
- language: actions
30+
build-mode: none
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
34+
35+
- name: Initialize CodeQL
36+
uses: github/codeql-action/init@4187e74d05793876e9989daffde9c3e66b4acd07 # v3
37+
with:
38+
languages: ${{ matrix.language }}
39+
build-mode: ${{ matrix.build-mode }}
40+
41+
- name: Autobuild
42+
uses: github/codeql-action/autobuild@4187e74d05793876e9989daffde9c3e66b4acd07 # v3
43+
44+
- name: Perform CodeQL Analysis
45+
uses: github/codeql-action/analyze@4187e74d05793876e9989daffde9c3e66b4acd07 # v3

.github/workflows/dogfood-gate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
branches: [main, master]
1414

1515
permissions:
16+
actions: read
1617
contents: read
1718

1819
jobs:

.github/workflows/governance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ concurrency:
2727
cancel-in-progress: true
2828

2929
permissions:
30+
actions: read
3031
contents: read
3132

3233
jobs:

.github/workflows/hypatia-scan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ concurrency:
1818
cancel-in-progress: true
1919

2020
permissions:
21+
actions: read
2122
contents: read
2223
# security-events: write serves two purposes (write implies read):
2324
# 1. read — lets the built-in GITHUB_TOKEN query this repo's own

.github/workflows/instant-sync.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
types: [published]
1010

1111
permissions:
12+
actions: read
1213
contents: read
1314

1415
jobs:

.github/workflows/mirror.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
workflow_dispatch:
88

99
permissions:
10+
actions: read
1011
contents: read
1112

1213
jobs:

.github/workflows/pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [main, master]
66
workflow_dispatch:
77
permissions:
8+
actions: read
89
contents: read
910
pages: write
1011
id-token: write

.github/workflows/push-email-notify.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ name: Push email notification
77
on:
88
push: {}
99
permissions:
10+
actions: read
1011
contents: read
1112
jobs:
1213
notify:

0 commit comments

Comments
 (0)