GitHub Actions
Use a reviewed commit SHA from ShipWitness in place of SHIPWITNESS_COMMIT. Create the workflow in your target repository.
name: Verify
on: [pull_request]
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: saifmodan2006/ShipWitness@SHIPWITNESS_COMMIT
with:
checks: secrets,migrations,environment
mandatory: secretsThe action publishes check metadata, failure annotations and a summary artifact. It excludes logs and screenshots from the artifact. For script checks, install target dependencies in an earlier step, then select the scripts and explicitly set approve-scripts: "true". Use an unprivileged runner and avoid exposing secrets to pull request builds. The action uses read permissions when invoked by the example workflow.
The root Action on main installs the pinned shipwitness@0.1.1 package from npm with install scripts disabled. Give each invocation a different artifact-name when verifying several projects in the same job.
On a pull request, open the ShipWitness check under Checks to see the release policy and per-check statuses in the job summary. The downloaded artifact contains a SHA-256 checksum alongside the JSON. Use sha256sum -c shipwitness-report.sha256 from its extracted directory.