Skip to content

Commit

Permalink
Merge pull request #151 from hyperspike/attest
Browse files Browse the repository at this point in the history
feat: Github Attestation for image and image.yaml
  • Loading branch information
dmolik authored Dec 31, 2024
2 parents f2aa224 + 456ce7e commit 26ba334
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ jobs:
run: |
cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}${{ env.RELEASE_VERSION }}@${{ steps.docker_build.outputs.digest }}
- name: Attest
uses: actions/attest-build-provenance@v2
id: attest
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.docker_build.outputs.digest }}
push-to-registry: true

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
check-latest: true
- name: Build Installer
run: make build-installer IMG=ghcr.io/hyperspike/valkey-operator:${{ github.ref_name }}
- name: Attest
uses: actions/attest-build-provenance@v2
id: attest
with:
subject-path: |
dist/install.yaml
- name: Upload dist/install.yaml to release
uses: svenstaro/upload-release-action@v2
with:
Expand Down

0 comments on commit 26ba334

Please sign in to comment.