Skip to content

Commit 16fa0d6

Browse files
authored
ci: add dd-octo-sts trust policy for integrations-core days-since-last-pin (#48035)
## Summary Adds a dd-octo-sts trust policy authorizing `DataDog/integrations-core`'s daily `days-since-last-pin` workflow to read `release.json` from this repo. Needed for DataDog/integrations-core#22951 ## Context The `days-since-last-pin.yml` workflow in `integrations-core` (Jira: AI-6462) computes how many days it has been since `INTEGRATIONS_CORE_VERSION` was last updated in this repo's `release.json`, and posts a gauge metric to Datadog for CI dashboard alerting (turns red when > 4 days). ## Policy **File:** `.github/chainguard/integrations-core.github.read-release-json.schedule.sts.yaml` - **Source:** `DataDog/integrations-core` (scheduled + workflow_dispatch, runs on `master`) - **Permission:** `contents: read` on this repo (to read `release.json` at historical SHAs and query the commits API) - Restricted to the exact workflow file and default branch via `claim_pattern` ## Related PR DataDog/integrations-core#22951 Co-authored-by: david.kirov <david.kirov@datadoghq.com>
1 parent 086654b commit 16fa0d6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Policy for: .github/workflows/days-since-last-pin.yml in DataDog/integrations-core
2+
issuer: https://token.actions.githubusercontent.com
3+
subject: repo:DataDog/integrations-core:ref:refs/heads/master
4+
5+
claim_pattern:
6+
event_name: (schedule|workflow_dispatch)
7+
job_workflow_ref: DataDog/integrations-core/\.github/workflows/days-since-last-pin\.yml@refs/heads/master
8+
ref: refs/heads/master
9+
repository: DataDog/integrations-core
10+
11+
permissions:
12+
contents: read

0 commit comments

Comments
 (0)