mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
feat: add build attestation (#10978)
* feat: add build attestation * chore: Update to v4.1.0 Signed-off-by: Kyle Gospodnetich <me@kylegospodneti.ch> * feat: Update to v4.1.0 Signed-off-by: Kyle Gospodnetich <me@kylegospodneti.ch> --------- Signed-off-by: Kyle Gospodnetich <me@kylegospodneti.ch>
This commit is contained in:
committed by
GitHub
parent
b4d9d689db
commit
779d744af4
@@ -3,6 +3,9 @@
|
||||
name: Automatically build packages
|
||||
permissions:
|
||||
contents: read
|
||||
attestations: write
|
||||
artifact-metadata: write
|
||||
id-token: write
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
name: Bootstrap Andaman and Subatomic
|
||||
permissions:
|
||||
contents: read
|
||||
attestations: write
|
||||
artifact-metadata: write
|
||||
id-token: write
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -79,3 +82,10 @@ jobs:
|
||||
--server https://subatomic.fyralabs.com \
|
||||
--token ${{ secrets.SUBATOMIC_TOKEN }} \
|
||||
terra${{ matrix.version }}-source anda-build/rpm/srpm/*
|
||||
|
||||
- name: Attest build provenance
|
||||
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
|
||||
with:
|
||||
subject-path: |
|
||||
anda-build/rpm/rpms/*
|
||||
anda-build/rpm/srpm/*
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
name: Manual Builds
|
||||
permissions:
|
||||
contents: read
|
||||
attestations: write
|
||||
artifact-metadata: write
|
||||
id-token: write
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
name: JSON Build
|
||||
permissions:
|
||||
contents: read
|
||||
attestations: write
|
||||
artifact-metadata: write
|
||||
id-token: write
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
@@ -125,6 +128,14 @@ jobs:
|
||||
--token ${{ secrets.SUBATOMIC_TOKEN }} \
|
||||
terra${{ matrix.version }}${{ matrix.pkg.labels['subrepo'] && '-$subrepo' || '' }}-source anda-build/rpm/srpm/*
|
||||
|
||||
- name: Attest build provenance
|
||||
if: inputs.publish
|
||||
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
|
||||
with:
|
||||
subject-path: |
|
||||
anda-build/rpm/rpms/*
|
||||
anda-build/rpm/srpm/*
|
||||
|
||||
- name: Notify Madoguchi (Success)
|
||||
if: inputs.publish && success()
|
||||
run: ./.github/workflows/mg.sh true "${{matrix.pkg.pkg}}" "${{matrix.version}}" "${{matrix.pkg.arch}}" "${{github.run_id}}" "${{secrets.MADOGUCHI_JWT}}" "$GITHUB_SHA"
|
||||
|
||||
Reference in New Issue
Block a user