Skip to content

Commit 43669f1

Browse files
chore(security): SHA-pin erlef/setup-beam + actions/download-artifact + add top-level workflow permissions (#30)
## Summary Salvages an unpushed orphan commit (\`7f5c950\` from 2026-05-23) from local main during a 2026-05-31 closeout sweep: - SHA-pins \`erlef/setup-beam@v1\` → \`@ee09b1e59bb240681c382eb1f0abc6a04af72764 # v1\` (3 occurrences across \`.github/workflows/ci.yml\`). - SHA-pins \`actions/download-artifact@v8\` → \`@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8\` (2 occurrences). - Adds top-level \`permissions: read-all\` to \`ci.yml\` and \`codeql.yml\` (was missing; baseline-deny pattern from the fleet-wide hardening pass). - Net diff: 2 files, +16/-12. ## Verification - Both SHAs (\`ee09b1e5...\` + \`3e5f45b2...\`) confirmed real via GitHub API → HTTP 200. - Original commit GPG-signed. ## Test plan - [x] SHAs verified live - [ ] CI passes (running)
1 parent af77838 commit 43669f1

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ env:
1717
OTP_VERSION: '26.2'
1818
REBAR3_VERSION: '3.22.1'
1919

20+
permissions: read-all
21+
2022
jobs:
2123
###########################################################################
2224
# Build Job
@@ -30,7 +32,7 @@ jobs:
3032
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
3133

3234
- name: Setup Erlang/OTP
33-
uses: erlef/setup-beam@v1
35+
uses: erlef/setup-beam@ee09b1e59bb240681c382eb1f0abc6a04af72764 # v1
3436
with:
3537
otp-version: ${{ env.OTP_VERSION }}
3638
rebar3-version: ${{ env.REBAR3_VERSION }}
@@ -76,13 +78,13 @@ jobs:
7678
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
7779

7880
- name: Setup Erlang/OTP
79-
uses: erlef/setup-beam@v1
81+
uses: erlef/setup-beam@ee09b1e59bb240681c382eb1f0abc6a04af72764 # v1
8082
with:
8183
otp-version: ${{ matrix.otp }}
8284
rebar3-version: ${{ env.REBAR3_VERSION }}
8385

8486
- name: Download build artifacts
85-
uses: actions/download-artifact@v8
87+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
8688
with:
8789
name: build-artifacts
8890
path: _build/
@@ -111,13 +113,13 @@ jobs:
111113
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
112114

113115
- name: Setup Erlang/OTP
114-
uses: erlef/setup-beam@v1
116+
uses: erlef/setup-beam@ee09b1e59bb240681c382eb1f0abc6a04af72764 # v1
115117
with:
116118
otp-version: ${{ env.OTP_VERSION }}
117119
rebar3-version: ${{ env.REBAR3_VERSION }}
118120

119121
- name: Download build artifacts
120-
uses: actions/download-artifact@v8
122+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
121123
with:
122124
name: build-artifacts
123125
path: _build/
@@ -129,7 +131,7 @@ jobs:
129131
run: rebar3 cover --verbose
130132

131133
- name: Upload coverage to Codecov
132-
uses: codecov/codecov-action@v6
134+
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6
133135
with:
134136
files: _build/test/cover/cobertura.xml
135137
fail_ci_if_error: false
@@ -148,7 +150,7 @@ jobs:
148150
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
149151

150152
- name: Setup Erlang/OTP
151-
uses: erlef/setup-beam@v1
153+
uses: erlef/setup-beam@ee09b1e59bb240681c382eb1f0abc6a04af72764 # v1
152154
with:
153155
otp-version: ${{ env.OTP_VERSION }}
154156
rebar3-version: ${{ env.REBAR3_VERSION }}
@@ -162,7 +164,7 @@ jobs:
162164
${{ runner.os }}-plt-
163165
164166
- name: Download build artifacts
165-
uses: actions/download-artifact@v8
167+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
166168
with:
167169
name: build-artifacts
168170
path: _build/
@@ -275,13 +277,13 @@ jobs:
275277
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
276278

277279
- name: Setup Erlang/OTP
278-
uses: erlef/setup-beam@v1
280+
uses: erlef/setup-beam@ee09b1e59bb240681c382eb1f0abc6a04af72764 # v1
279281
with:
280282
otp-version: ${{ env.OTP_VERSION }}
281283
rebar3-version: ${{ env.REBAR3_VERSION }}
282284

283285
- name: Download build artifacts
284-
uses: actions/download-artifact@v8
286+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
285287
with:
286288
name: build-artifacts
287289
path: _build/
@@ -311,7 +313,7 @@ jobs:
311313
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
312314

313315
- name: Setup Erlang/OTP
314-
uses: erlef/setup-beam@v1
316+
uses: erlef/setup-beam@ee09b1e59bb240681c382eb1f0abc6a04af72764 # v1
315317
with:
316318
otp-version: ${{ env.OTP_VERSION }}
317319
rebar3-version: ${{ env.REBAR3_VERSION }}
@@ -322,7 +324,7 @@ jobs:
322324
rebar3 as prod tar
323325
324326
- name: Create GitHub Release
325-
uses: softprops/action-gh-release@v3
327+
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3
326328
with:
327329
files: _build/prod/rel/safe_brute_force/*.tar.gz
328330
generate_release_notes: true

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ on:
2020
schedule:
2121
- cron: '37 15 * * 1'
2222

23+
permissions: read-all
24+
2325
jobs:
2426
analyze:
2527
name: Analyze (${{ matrix.language }})

0 commit comments

Comments
 (0)