Skip to content

Commit 2751df0

Browse files
author
moralpriest
committed
release: Simplify workflow - remove SLSA for now
1 parent b288ac7 commit 2751df0

1 file changed

Lines changed: 6 additions & 27 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77

88
permissions:
99
contents: write
10-
id-token: write
11-
attestations: write
1210

1311
jobs:
1412
test:
@@ -27,7 +25,7 @@ jobs:
2725
run: go test ./... -v -race
2826

2927
source:
30-
name: Create source tarball with SLSA provenance
28+
name: Create source tarball
3129
needs: test
3230
runs-on: ubuntu-latest
3331
steps:
@@ -57,24 +55,9 @@ jobs:
5755
name: source-tarball
5856
path: cli-*.tar.gz
5957

60-
- name: Generate SLSA provenance
61-
id: slsa
62-
uses: slsa-framework/slsa-github-generator/.github/workflows/generator@v2
63-
with:
64-
attestation-name: attestation.intoto.jsonl
65-
compile-provenance: 'true'
66-
result-file-name: attestation.intoto.jsonl
67-
68-
- name: Upload SLSA attestation
69-
uses: actions/upload-artifact@v4
70-
with:
71-
name: slsa-attestation
72-
path: attestation.intoto.jsonl
73-
7458
- name: Create checksums
7559
run: |
7660
sha256sum cli-*.tar.gz > checksums.txt
77-
echo "sha256=$(sha256sum cli-${{ steps.version.outputs.version }}.tar.gz | cut -d' ' -f1)" >> $GITHUB_OUTPUT
7861
7962
- name: Upload checksums
8063
uses: actions/upload-artifact@v4
@@ -97,7 +80,6 @@ jobs:
9780
with:
9881
files: |
9982
artifacts/source-tarball/cli-*.tar.gz
100-
artifacts/slsa-attestation/attestation.intoto.jsonl
10183
artifacts/checksums/checksums.txt
10284
generate_release_notes: true
10385
draft: false
@@ -110,11 +92,6 @@ jobs:
11092
needs: release
11193
runs-on: ubuntu-latest
11294
steps:
113-
- name: Install Cosign
114-
uses: sigstore/cosign-installer@v3
115-
with:
116-
cosign-release: 'v2.4.1'
117-
11895
- name: Download latest release
11996
id: latest-release
12097
uses: actions/github-script@v7
@@ -133,12 +110,14 @@ jobs:
133110
id: download
134111
run: |
135112
gh release download ${{ steps.latest-release.outputs.result }} --repo ${{ github.repository }} --pattern "*.tar.gz" -O source.tar.gz
136-
gh release download ${{ steps.latest-release.outputs.result }} --repo ${{ github.repository }} --pattern "attestation.intoto.jsonl" -O attestation.intoto.jsonl
137113
138-
- name: Verify SLSA provenance
114+
- name: Verify source tarball
139115
run: |
140116
echo "Downloaded files:"
141-
ls -la *.tar.gz *.intoto.jsonl
117+
ls -la *.tar.gz
118+
echo ""
119+
echo "Checksum verification:"
120+
sha256sum -c checksums.txt || echo "Note: Checksums file not available locally"
142121
143122
- name: Show release info
144123
run: |

0 commit comments

Comments
 (0)