|
1 | 1 | # Policy for: .github/workflows/resolve-build-deps.yaml publish job in DataDog/integrations-core |
2 | | -# Triggered by push to master or release branches, or workflow_dispatch |
| 2 | +# Triggered by push to feature branches that update dependencies |
3 | 3 | # |
4 | 4 | # Naming convention: |
5 | 5 | # self: Only this repository (DataDog/integrations-core) can use this policy |
6 | 6 | # resolve-build-deps: Specific workflow |
7 | | -# push: Primary trigger is push to protected branches |
| 7 | +# push: Primary trigger is push to feature branches |
8 | 8 | # |
9 | 9 | # Security model: |
10 | | -# - Publish job runs on push or workflow_dispatch to protected branches (master and X.Y.x) |
| 10 | +# - Publish job runs on push to any feature branch |
11 | 11 | # - Workflow file must be committed to the same branch |
12 | | -# - Pull request events are excluded by the job's if condition |
| 12 | +# - Access is scoped to this specific workflow file via job_workflow_ref |
13 | 13 | # |
14 | 14 | # Permissions granted: |
15 | | -# - contents: write - Push commits to branches |
16 | | -# - pull_requests: write - Create pull requests |
17 | | -# - workflows: write - Modify workflow files in generated commits |
| 15 | +# - contents: write - Push commits (lockfiles) back to the feature branch |
18 | 16 | # |
19 | 17 | # Usage in workflows: |
20 | 18 | # - uses: DataDog/dd-octo-sts-action@96a25462dbcb10ebf0bfd6e2ccc917d2ab235b9a # v1.0.4 |
|
24 | 22 |
|
25 | 23 | issuer: https://token.actions.githubusercontent.com |
26 | 24 |
|
27 | | -subject_pattern: repo:DataDog/integrations-core:ref:refs/heads/(master|\d+\.\d+\..*) |
| 25 | +subject_pattern: repo:DataDog/integrations-core:ref:refs/heads/.* |
28 | 26 |
|
29 | 27 | claim_pattern: |
30 | | - event_name: (push|workflow_dispatch) |
31 | | - job_workflow_ref: DataDog/integrations-core/\.github/workflows/resolve-build-deps\.yaml@refs/heads/(master|\d+\.\d+\..*) |
32 | | - ref: refs/heads/(master|\d+\.\d+\..*) |
| 28 | + event_name: push |
| 29 | + job_workflow_ref: DataDog/integrations-core/\.github/workflows/resolve-build-deps\.yaml@refs/heads/.* |
33 | 30 | repository: DataDog/integrations-core |
34 | 31 |
|
35 | 32 | permissions: |
36 | 33 | contents: write |
37 | | - pull_requests: write |
38 | | - workflows: write |
0 commit comments