Skip to content

Commit 9fa3516

Browse files
authored
chore(ci): Add statuses write permission to workflows (#21788)
Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
1 parent ca05055 commit 9fa3516

13 files changed

+39
-0
lines changed

.github/workflows/ci-integration-review.yml

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ on:
3232
pull_request_review:
3333
types: [submitted]
3434

35+
permissions:
36+
statuses: write
37+
3538
env:
3639
AWS_ACCESS_KEY_ID: "dummy"
3740
AWS_SECRET_ACCESS_KEY: "dummy"

.github/workflows/ci-review-trigger.yml

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626
pull_request_review:
2727
types: [submitted]
2828

29+
permissions:
30+
statuses: write
31+
2932
env:
3033
DD_ENV: "ci"
3134
RUST_BACKTRACE: full

.github/workflows/cli.yml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: CLI - Linux
33
on:
44
workflow_call:
55

6+
permissions:
7+
statuses: write
8+
69
jobs:
710
test-cli:
811
runs-on: ubuntu-latest

.github/workflows/component_features.yml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
# At midnight UTC Tue-Sat
1717
- cron: '0 0 * * 2-6'
1818

19+
permissions:
20+
statuses: write
21+
1922
jobs:
2023
check-component-features:
2124
# use free tier on schedule and 8 core to expedite results on demand invocation

.github/workflows/cross.yml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Cross
33
on:
44
workflow_call:
55

6+
permissions:
7+
statuses: write
8+
69
jobs:
710
cross-linux:
811
name: Cross - ${{ matrix.target }}

.github/workflows/deny.yml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
# At midnight UTC
1717
- cron: '0 0 * * *'
1818

19+
permissions:
20+
statuses: write
21+
1922
jobs:
2023
test-deny:
2124
runs-on: ubuntu-latest

.github/workflows/e2e.yml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
# At midnight UTC Tue-Sat
1717
- cron: '0 0 * * 2-6'
1818

19+
permissions:
20+
statuses: write
21+
1922
concurrency:
2023
# `github.event.number` exists for pull requests, otherwise fall back to SHA for merge queue
2124
group: ${{ github.workflow }}-${{ github.event.number || github.event.merge_group.head_sha }}

.github/workflows/environment.yml

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ env:
1111
VERBOSE: true
1212
CI: true
1313

14+
permissions:
15+
statuses: write
16+
1417
jobs:
1518
publish-new-environment:
1619
runs-on: ubuntu-20.04

.github/workflows/install-sh.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
workflow_call:
55
workflow_dispatch:
66

7+
permissions:
8+
statuses: write
9+
710
jobs:
811
test-install:
912
runs-on: ubuntu-20.04

.github/workflows/k8s_e2e.yml

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
name: K8S E2E Suite
1616

17+
permissions:
18+
statuses: write
19+
1720
on:
1821
workflow_dispatch:
1922
workflow_call:

.github/workflows/misc.yml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Miscellaneous - Linux
33
on:
44
workflow_call:
55

6+
permissions:
7+
statuses: write
8+
69
jobs:
710
test-misc:
811
runs-on: ubuntu-20.04

.github/workflows/unit_mac.yml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Unit - Mac
33
on:
44
workflow_call:
55

6+
permissions:
7+
statuses: write
8+
69
jobs:
710
unit-mac:
811
runs-on: macos-13

.github/workflows/unit_windows.yml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Unit - Windows
33
on:
44
workflow_call:
55

6+
permissions:
7+
statuses: write
8+
69
jobs:
710

811
test-windows:

0 commit comments

Comments
 (0)