Skip to content

Commit 596976c

Browse files
committed
Fix dd-octo-sts policy name for dd-trace-rb consumer
The matrix entry referenced images-rb.notify-dd-trace-rb, but the policy argument is resolved against the target repo's trust policy files, not the caller. Points at dd-trace-rb's new images-rb.notify-consumers policy (.github/chainguard/images-rb.notify-consumers.sts.yaml), which names this workflow as caller -- distinct from dd-trace-rb's own self.update-images policy used by its update-images.yml to open the pin PR. Previously every dispatch failed with "no application matches the requested scope".
1 parent 224f5e3 commit 596976c

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/notify-consumers.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,12 @@ jobs:
7676
matrix:
7777
include:
7878
# To add a new consumer: add a { repo, policy } entry below, add a
79-
# matching self.<policy> dd-octo-sts policy in the consumer repo,
80-
# get a cross-repo dd-octo-sts grant provisioned for images-rb to
81-
# dispatch into it, and make sure the consumer repo actually has a
82-
# workflow listening for the images-updated repository_dispatch
83-
# event.
79+
# matching dd-octo-sts trust policy file in the consumer repo
80+
# naming this workflow (DataDog/images-rb:notify-consumers.yml) as
81+
# caller, and make sure the consumer repo actually has a workflow
82+
# listening for the images-updated repository_dispatch event.
8483
- repo: DataDog/dd-trace-rb
85-
policy: images-rb.notify-dd-trace-rb
84+
policy: images-rb.notify-consumers
8685
steps:
8786
- name: Get GitHub Token via dd-octo-sts
8887
id: generate-token

0 commit comments

Comments
 (0)