Skip to content

Commit ae76856

Browse files
authored
[Bug-fix] dependabot jobs failing from wrong claim (#7173)
Dependabot workflows have been failing since 12-11-2025 (the last change to this file) due to ``` Attempt 1 failed. Error: HTTP error! status: 403, {"code":7,"message":"trust policy: claim \"job_workflow_ref\" did not match \"^DataDog/dd-trace-js/.github/workflows/dependabot-automation.yml@refs/heads/master$\"","details":[]} ``` The JWT in the error logs have claim: "job_workflow_ref": "DataDog/dd-trace-js/.github/workflows/dependabot-automation.yml@refs/pull/{number}/merge", while the [policy](https://github.com/DataDog/dd-trace-js/edit/master/.github/chainguard/dependabot-automation.sts.yaml) only accepts "^DataDog/dd-trace-js/.github/workflows/dependabot-automation.yml@refs/heads/master$\".
1 parent 39fb819 commit ae76856

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/chainguard/dependabot-automation.sts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ issuer: https://token.actions.githubusercontent.com
33
subject: repo:DataDog/dd-trace-js:pull_request
44

55
claim_pattern:
6-
event_name: pull_request
6+
event_name: pull_request_target
77
ref: refs/heads/master
88
ref_protected: "true"
99
job_workflow_ref: DataDog/dd-trace-js/.github/workflows/dependabot-automation.yml@refs/heads/master

0 commit comments

Comments
 (0)