Skip to content

Commit cddcfcc

Browse files
Add minimum token permissions for all github workflow files (open-telemetry#400)
Co-authored-by: otelbot <[email protected]>
1 parent 54b8e1e commit cddcfcc

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.github/workflows/dependabot-auto-approve.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ name: Dependabot auto-approve
22
on: pull_request
33

44
permissions:
5-
pull-requests: write
5+
contents: read
66

77
jobs:
88
dependabot:
9+
permissions:
10+
pull-requests: write
911
runs-on: ubuntu-latest
1012
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'open-telemetry/opentelemetry-php-contrib'
1113
steps:

.github/workflows/php.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1114
cancel-in-progress: true

.github/workflows/split_monorepo.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
create:
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
gitsplit:
1417
runs-on: ubuntu-latest

.github/workflows/update-dependabot-config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
# Allow manual triggering
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
update-dependabot-config:
1215
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)