Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ jobs:
version="${GITHUB_REF_NAME#v}"
hash() { sha256sum "$1" | cut -d' ' -f1; }
base="https://github.com/JacobOptimiza/dev-nav/releases/download/v$version"
jq --arg version "$version" \
jq --indent 4 --arg version "$version" \
--arg url_x64 "$base/DevNav-scoop-x64.zip" --arg sha_x64 "$(hash DevNav-scoop-x64.zip)" \
--arg url_arm64 "$base/DevNav-scoop-arm64.zip" --arg sha_arm64 "$(hash DevNav-scoop-arm64.zip)" \
'.version = $version | .architecture = {
Expand Down
4 changes: 4 additions & 0 deletions tests/powershell/ReleaseProvenanceContract.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ BeforeAll {
}

Describe 'release provenance publication contract' {
It 'generates Scoop manifests with Scoop canonical four-space formatting' {
$script:workflow | Should -Match 'jq\s+--indent\s+4\s+--arg version'
}

It 'produces a Scorecard-recognizable intoto jsonl artifact per architecture' {
$script:workflow |
Should -Match 'DevNav-build-provenance-\$\{\{ matrix\.architecture \}\}\.intoto\.jsonl'
Expand Down