Skip to content

Commit ab57f24

Browse files
committed
slsa level 3
1 parent 7b6c1c0 commit ab57f24

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ on:
88
paths:
99
- lib/version.rb
1010

11-
permissions:
12-
contents: write
13-
packages: write
14-
1511
jobs:
1612
release:
1713
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
packages: write
17+
outputs:
18+
artifact-id: ${{ steps.upload-artifact.outputs.artifact-id }}
1819

1920
steps:
2021
- name: checkout
@@ -42,6 +43,12 @@ jobs:
4243
- name: build
4344
run: echo "GEM_VERSION=$(gem build ${{ env.GEM_NAME }}.gemspec 2>&1 | grep Version | cut -d':' -f 2 | tr -d " \t\n\r")" >> $GITHUB_ENV
4445

46+
- name: upload artifact
47+
uses: actions/upload-artifact@4.6.2
48+
id: upload-artifact
49+
with:
50+
path: ${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem
51+
4552
- name: publish to GitHub packages
4653
run: |
4754
export OWNER=$( echo ${{ github.repository }} | cut -d "/" -f 1 )
@@ -61,3 +68,22 @@ jobs:
6168
chmod 0600 ~/.gem/credentials
6269
gem push ${{ env.GEM_NAME }}-${{ env.GEM_VERSION }}.gem
6370
rm ~/.gem/credentials
71+
72+
sign:
73+
needs: release
74+
permissions:
75+
id-token: write
76+
attestations: write
77+
contents: read
78+
uses: runwaylab/salsa/.github/workflows/sign-artifact.yml@main
79+
with:
80+
artifact-ids: ${{ needs.release.outputs.artifact-id }}
81+
artifact-path: "."
82+
83+
verify:
84+
permissions: {}
85+
needs: [release, sign]
86+
uses: runwaylab/salsa/.github/workflows/verify.yml@main
87+
with:
88+
artifact-ids: ${{ needs.release.outputs.artifact-id }}
89+
artifact-path: "."

0 commit comments

Comments
 (0)