Skip to content

Commit

Permalink
chore(ci): update witness-run-action, change witness install dir
Browse files Browse the repository at this point in the history
This updates the witness-run-action, and installs witness to a directory
outside of the current source directory. This keeps our source git tree
clean.

Signed-off-by: Mikhail Swift <[email protected]>
  • Loading branch information
mikhailswift committed Jul 23, 2024
1 parent 18b613c commit 8693927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@ jobs:
run: go install github.com/goreleaser/[email protected]

- name: Run GoReleaser
uses: testifysec/witness-run-action@85ddab8b46a86b2905a3b547a1806ab264fbb810
uses: testifysec/witness-run-action@cceed291062b350dc658d7d189933ac47d4f4dec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
with:
witness-install-dir: /opt/witness
step: "build"
attestations: "github"
command: goreleaser release --clean
3 changes: 2 additions & 1 deletion .github/workflows/witness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ jobs:
go-version: 1.21.x

- if: ${{ inputs.pull_request == false }}
uses: testifysec/witness-run-action@85ddab8b46a86b2905a3b547a1806ab264fbb810
uses: testifysec/witness-run-action@cceed291062b350dc658d7d189933ac47d4f4dec
with:
witness-install-dir: /opt/witness
step: ${{ inputs.step }}
attestations: ${{ inputs.attestations }}
command: /bin/sh -c "${{ inputs.command }}"
Expand Down

0 comments on commit 8693927

Please sign in to comment.