mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-04 20:27:00 +02:00
Add initial version of slsa releaser that validates the generated SLSA signatures
This commit is contained in:
parent
06f3501756
commit
87dee94aab
29
.github/workflows/slsa-releaser.yml
vendored
29
.github/workflows/slsa-releaser.yml
vendored
@ -2,6 +2,7 @@ name: SLSA Client Releaser
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
|
branches: [ master ]
|
||||||
tags:
|
tags:
|
||||||
- "*"
|
- "*"
|
||||||
|
|
||||||
@ -141,10 +142,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
curl https://api.hishtory.dev/api/v1/trigger-cron
|
curl https://api.hishtory.dev/api/v1/trigger-cron
|
||||||
|
|
||||||
# Upload to GitHub release.
|
# Validate the signed binaries
|
||||||
upload:
|
validate:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: read
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build-linux-amd64
|
- build-linux-amd64
|
||||||
@ -169,14 +170,14 @@ jobs:
|
|||||||
- uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
|
- uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
|
||||||
with:
|
with:
|
||||||
name: hishtory-darwin-arm64.intoto.jsonl
|
name: hishtory-darwin-arm64.intoto.jsonl
|
||||||
- name: Release
|
- name: Validate Release
|
||||||
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
|
run: |
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') }}
|
curl https://hishtory.dev/install.py | python3 -
|
||||||
with:
|
source ~/.bashrc
|
||||||
files: |
|
ls
|
||||||
hishtory-linux-amd64
|
pwd
|
||||||
hishtory-linux-amd64.intoto.jsonl
|
which hishtory
|
||||||
hishtory-darwin-amd64
|
echo $PATH
|
||||||
hishtory-darwin-amd64.intoto.jsonl
|
hishtory validate-binary v0.`cat VERSION` hishtory-linux-amd64 hishtory-linux-amd64.intoto.jsonl
|
||||||
hishtory-darwin-arm64
|
# TODO: Validate other binaries here
|
||||||
hishtory-darwin-arm64.intoto.jsonl
|
|
Loading…
x
Reference in New Issue
Block a user