Skip to content

Commit 43cde32

Browse files
committed
Fix CodeQL alerts: pin Alpine image digest, scope release permissions
- Pin Dockerfile.alpine to SHA digest (PinnedDependenciesID) - Narrow workflow-level permissions to contents:read (TokenPermissionsID) - Elevated permissions only on release-draft and verify jobs
1 parent 0eba6df commit 43cde32

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ on:
2424
default: 'quick'
2525

2626
permissions:
27-
contents: write
28-
id-token: write
29-
attestations: write
27+
contents: read
3028

3129
jobs:
3230
# ── 1. Lint + Security + CodeQL ────────────────────────────────

test-infrastructure/Dockerfile.alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Build: docker build -f test-infrastructure/Dockerfile.alpine -t cbm-alpine test-infrastructure/
77
# Run: docker run --rm -v $(pwd):/src cbm-alpine
88

9-
FROM alpine:3.21
9+
FROM alpine:3.21@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
1010

1111
RUN apk add --no-cache \
1212
build-base \

0 commit comments

Comments
 (0)