Skip to content

Commit 471edac

Browse files
CI: Add GitHub token permissions for workflows (#36325)
Co-authored-by: XhmikosR <[email protected]>
1 parent af34b2b commit 471edac

File tree

11 files changed

+53
-0
lines changed

11 files changed

+53
-0
lines changed

.github/workflows/browserstack.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ env:
88
FORCE_COLOR: 2
99
NODE: 18
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
browserstack:
1316
runs-on: ubuntu-latest

.github/workflows/bundlewatch.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ env:
1111
FORCE_COLOR: 2
1212
NODE: 18
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
bundlewatch:
1619
runs-on: ubuntu-latest

.github/workflows/cspell.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,15 @@ on:
1010
env:
1111
FORCE_COLOR: 2
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
cspell:
18+
permissions:
19+
# allow streetsidesoftware/cspell-action to fetch files for commits and PRs
20+
contents: read
21+
pull-requests: read
1522
runs-on: ubuntu-latest
1623

1724
steps:

.github/workflows/css.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ env:
1111
FORCE_COLOR: 2
1212
NODE: 18
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
css:
1619
runs-on: ubuntu-latest

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ env:
1111
FORCE_COLOR: 2
1212
NODE: 18
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
docs:
1619
runs-on: ubuntu-latest

.github/workflows/issue-close-require.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ on:
44
schedule:
55
- cron: "0 0 * * *"
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
issue-close-require:
12+
permissions:
13+
# allow actions-cool/issues-helper to update issues and PRs
14+
issues: write
15+
pull-requests: write
916
runs-on: ubuntu-latest
1017
if: github.repository == 'twbs/bootstrap'
1118
steps:

.github/workflows/issue-labeled.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ on:
44
issues:
55
types: [labeled]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
issue-labeled:
12+
permissions:
13+
# allow actions-cool/issues-helper to update issues and PRs
14+
issues: write
15+
pull-requests: write
916
if: github.repository == 'twbs/bootstrap'
1017
runs-on: ubuntu-latest
1118
steps:

.github/workflows/js.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@ env:
1111
FORCE_COLOR: 2
1212
NODE: 18
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
run:
19+
permissions:
20+
# allow coverallsapp/github-action to create new checks issues and fetch code
21+
checks: write
22+
contents: read
1623
name: JS Tests
1724
runs-on: ubuntu-latest
1825

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ env:
1111
FORCE_COLOR: 2
1212
NODE: 18
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
lint:
1619
runs-on: ubuntu-latest

.github/workflows/node-sass.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ env:
1111
FORCE_COLOR: 2
1212
NODE: 18
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
css:
1619
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)