Skip to content

Commit 6578869

Browse files
fix(ci): restore security-events permission and bump builder image
The previous commit removed security-events: write from main.yaml, but build-and-release.yaml still needs it for uploading Grype SARIF results via codeql-action/upload-sarif. - Restore security-events: write in main.yaml - Bump builder image to golang:1.25.7-alpine3.23 in Dockerfile and scan-intermediate-image.yaml
1 parent 9278d47 commit 6578869

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
permissions:
1212
contents: write
1313
packages: write
14+
security-events: write
1415

1516
jobs:
1617
build:

.github/workflows/scan-intermediate-image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
continue-on-error: true
2222
with:
2323
cache-db: true
24-
image: "golang:1.25.6-alpine3.22" # sync this with Dockerfile
24+
image: "golang:1.25.7-alpine3.23" # sync this with Dockerfile
2525
output-file: grype.sarif
2626
severity-cutoff: high
2727
- name: Upload SARIF file

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Github workflow step anchore/scan-action scans only the final image
44
# sync this intermediate FROM reference with:
55
# scan-intermediate-image.yaml
6-
FROM golang:1.25.6-alpine3.22 AS builder
6+
FROM golang:1.25.7-alpine3.23 AS builder
77

88
ARG TARGETOS
99
ARG TARGETARCH

0 commit comments

Comments
 (0)