Skip to content

Commit

Permalink
test another predicate digest mode
Browse files Browse the repository at this point in the history
  • Loading branch information
AEnguerrand committed Dec 4, 2024
1 parent 9cf077a commit dd87e11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/slsa-generator-nodejs-custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
BUILDER_ID: ${{ github.workflow_ref }} # Buid is made on the same job
CONFIG_SOURCE_URI: git+${{ github.event.repository.html_url }}@${{ github.ref }}
CONFIG_SOURCE_DIGEST: ${{ github.sha }}
ENTRY_POINT: ${{ github.workflow }}
ENTRY_POINT: ${{ github.event.repository.html_url }}
GITHUB_ACTOR_ID: ${{ github.actor_id }}
GITHUB_TRIGGERING_ACTOR_ID: ${{ github.triggering_actor }}
GITHUB_REPOSITORY_ID: ${{ github.repository_id }}
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/slsa-github-generator-nodejs-predicate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ cat <<EOF > predicate.json
},
"metadata": {
"buildInvocationId": "$BUILD_INVOCATION_ID"
}
},
"materials": [
{
"uri": "$CONFIG_SOURCE_URI",
"digest": {
"sha1": "$CONFIG_SOURCE_DIGEST"
}
}
]
}
EOF

Expand Down

0 comments on commit dd87e11

Please sign in to comment.