Skip to content

Commit 8e591bd

Browse files
committed
feat(ci): specify worker repo in externalParameters.resolvedDependencies
1 parent 226d0b6 commit 8e591bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/deploy-worker.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ jobs:
148148
id: update-predicate
149149
run: |
150150
uri="git+https://github.com/${{ github.event.inputs.repo }}@refs/heads/${{ github.event.inputs.branch }}"
151-
predicate=$(echo '${{ steps.generate-build-provenance-predicate.outputs.predicate }}' | jq -c ".buildDefinition.resolvedDependencies = [{\"uri\": \"$uri\", \"digest\": {\"gitCommit\": \"${{ github.event.inputs.commit }}\"}}]")
151+
resolved_dependencies=$(jq -n --arg uri "$uri" --arg commit "${{ github.event.inputs.commit }}" '[{"uri": $uri, "digest": {"gitCommit": $commit}}]')
152+
predicate=$(echo '${{ steps.generate-build-provenance-predicate.outputs.predicate }}' | jq -c '.buildDefinition.externalParameters.resolvedDependencies = $resolved_dependencies' --argjson resolved_dependencies "$resolved_dependencies")
152153
echo "predicate=$predicate" >> $GITHUB_OUTPUT
153154
154155
- uses: actions/attest@2da0b136720d14f01f4dbeeafd1d5a4d76cbe21d # v1.4.0

0 commit comments

Comments
 (0)