Skip to content

Commit 57a4577

Browse files
committed
Merge branch 'main' into 'ci/add-zizmor'
2 parents effe55c + 88a91cf commit 57a4577

17 files changed

Lines changed: 219 additions & 188 deletions

File tree

.github/workflows/reusable-release.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
id-token: write # For cosign
4141
packages: write # For GHCR
4242
contents: read # Not required for public repositories, but for clarity
43+
attestations: write # For build provenance attestations
4344
steps:
4445
- name: Cosign install
4546
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
@@ -103,6 +104,7 @@ jobs:
103104
mkdir tmp
104105
105106
- name: GoReleaser
107+
id: goreleaser
106108
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
107109
with:
108110
version: v2.1.0
@@ -133,6 +135,12 @@ jobs:
133135
ghcr.io/aquasecurity/trivy:canary
134136
public.ecr.aws/aquasecurity/trivy:canary
135137
138+
- name: Generate build provenance attestations
139+
if: ${{ inputs.goreleaser_config != 'goreleaser-canary.yml' }}
140+
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4.1.0
141+
with:
142+
subject-checksums: dist/trivy_${{ fromJSON(steps.goreleaser.outputs.metadata).version }}_checksums.txt
143+
136144
# This workflow is only triggered by tag pushes (release.yaml: on.push.tags), which require
137145
# maintainer access. Fork PRs cannot reach this code path, so the cache cannot be poisoned
138146
# by external contributors. The key is scoped to github.sha, making cross-run collisions

.github/workflows/roadmap.yaml

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)