mirror of
https://github.com/forkless/NotAlterra.git
synced 2026-08-16 08:36:37 +02:00
reorder provenance before release, set upload-assets: false so release job collects attestation
This commit is contained in:
@@ -73,7 +73,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: .
|
path: .
|
||||||
format: cyclonedx-json
|
format: cyclonedx-json
|
||||||
output-file: builds/notalterra-${GITHUB_REF_NAME}-sbom.cdx.json
|
output-file: builds/notalterra-sbom.cdx.json
|
||||||
- name: Generate hashes
|
- name: Generate hashes
|
||||||
id: hash
|
id: hash
|
||||||
run: |
|
run: |
|
||||||
@@ -87,14 +87,25 @@ jobs:
|
|||||||
name: release-binaries
|
name: release-binaries
|
||||||
path: builds/
|
path: builds/
|
||||||
|
|
||||||
release:
|
provenance:
|
||||||
needs: build
|
needs: build
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: write
|
||||||
|
actions: read
|
||||||
|
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
|
||||||
|
with:
|
||||||
|
base64-subjects: "${{ needs.build.outputs.hashes }}"
|
||||||
|
upload-assets: false
|
||||||
|
|
||||||
|
release:
|
||||||
|
needs: [build, provenance]
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
id-token: write
|
id-token: write
|
||||||
attestations: write
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
@@ -107,15 +118,3 @@ jobs:
|
|||||||
files: builds/*/*
|
files: builds/*/*
|
||||||
body_path: _release.md
|
body_path: _release.md
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
provenance:
|
|
||||||
needs: [build, release]
|
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
contents: write
|
|
||||||
actions: read
|
|
||||||
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
|
|
||||||
with:
|
|
||||||
base64-subjects: "${{ needs.build.outputs.hashes }}"
|
|
||||||
upload-assets: true
|
|
||||||
|
|||||||
Reference in New Issue
Block a user