Skip to content

Commit d02ae23

Browse files
ci: improve permissions on pipeline
1 parent ed3a24e commit d02ae23

4 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/base-beta.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313

1414
workflow_dispatch:
1515

16+
permissions:
17+
contents: read
1618
# This ensures that previous jobs for the PR are canceled when PR is updated
1719
concurrency:
1820
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/base.yaml

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

1212
workflow_dispatch:
1313

14+
permissions:
15+
contents: read
16+
1417
# This ensures that previous jobs for the PR are canceled when PR is updated
1518
concurrency:
1619
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/pr.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: PR Conventional Commit Validation
12+
permissions:
13+
contents: read
1214
uses: ytanikin/PRConventionalCommits@1.3.0
1315
with:
1416
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'

.github/workflows/stale.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
jobs:
77
stale:
88
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
contents: write
913
steps:
1014
- uses: actions/stale@v10
1115
with:

0 commit comments

Comments
 (0)