Skip to content

Commit fe318b3

Browse files
Copilottrask
andcommitted
Add minimum token permissions for all GitHub workflow files
Co-authored-by: trask <[email protected]>
1 parent a69af79 commit fe318b3

16 files changed

+46
-0
lines changed

.github/workflows/backport.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
description: "The pull request # to backport"
77
required: true
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
backport:
1114
runs-on: ubuntu-latest

.github/workflows/changelog.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
branches:
1111
- main
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
changelog:
1518
runs-on: ubuntu-latest

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
# * * * * *
1515
- cron: '30 1 * * *'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
CodeQL-Build:
1922
runs-on: ubuntu-latest

.github/workflows/component-owners.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ name: 'Component Owners'
66
on:
77
pull_request_target:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
run_self:
1114
runs-on: ubuntu-latest

.github/workflows/core_contrib_test_0.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
required: true
1414
type: string
1515

16+
permissions:
17+
contents: read
18+
1619
env:
1720
CORE_REPO_SHA: ${{ inputs.CORE_REPO_SHA }}
1821
CONTRIB_REPO_SHA: ${{ inputs.CONTRIB_REPO_SHA }}

.github/workflows/lint_0.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- 'release/*'
1010
pull_request:
1111

12+
permissions:
13+
contents: read
14+
1215
concurrency:
1316
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1417
cancel-in-progress: true

.github/workflows/misc_0.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- 'release/*'
1010
pull_request:
1111

12+
permissions:
13+
contents: read
14+
1215
concurrency:
1316
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1417
cancel-in-progress: true

.github/workflows/package-prepare-patch-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
- opentelemetry-instrumentation-google-genai
1414
description: 'Package to be released'
1515
required: true
16+
permissions:
17+
contents: read
1618
run-name: "[Package][${{ inputs.package }}] Prepare patch release"
1719

1820
jobs:

.github/workflows/package-prepare-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
description: 'Package to be released'
1515
required: true
1616

17+
permissions:
18+
contents: read
19+
1720
run-name: "[Package][${{ inputs.package }}] Prepare release"
1821
jobs:
1922
prereqs:

.github/workflows/package-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
- opentelemetry-instrumentation-google-genai
1414
description: 'Package to be released'
1515
required: true
16+
permissions:
17+
contents: read
1618
run-name: "[Package][${{ inputs.package }}] Release"
1719
jobs:
1820
release:

0 commit comments

Comments
 (0)