Skip to content

Commit ff38d0c

Browse files
committed
build: move artifact vefification to release build
1 parent 9162c48 commit ff38d0c

2 files changed

Lines changed: 10 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,3 @@ jobs:
4545
with:
4646
fail-on-unsigned: true
4747

48-
verify-artifacts:
49-
runs-on: ubuntu-latest
50-
needs: build-and-test
51-
steps:
52-
- uses: actions/checkout@v4
53-
with:
54-
fetch-depth: 0
55-
56-
- name: Verify dist/index.js attestation
57-
uses: ./
58-
with:
59-
identity-bundle-json: ${{ secrets.AUTHS_CI_IDENTITY_BUNDLE_JSON }}
60-
artifact-paths: 'dist/index.js'
61-
fail-on-unattested: true

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ jobs:
7575
7676
echo "Signed dist/index.js → dist/index.js.auths.json"
7777
78+
# --- Verify the artifact we just signed (dogfood) ---
79+
- name: Verify dist/index.js attestation
80+
if: hashFiles('dist/index.js.auths.json') != ''
81+
uses: ./
82+
with:
83+
identity-bundle-json: ${{ secrets.AUTHS_CI_IDENTITY_BUNDLE_JSON }}
84+
artifact-paths: 'dist/index.js'
85+
fail-on-unattested: true
86+
fail-on-unsigned: false
87+
7888
- name: Generate SHA256 checksums
7989
run: |
8090
cd dist

0 commit comments

Comments
 (0)