1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-18 19:31:35 +02:00

CI: Add GitHub token permissions for workflows (#36325)

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
Varun Sharma
2022-12-16 12:50:12 +05:30
committed by GitHub
parent af34b2b56a
commit 471edac3d3
11 changed files with 53 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ env:
FORCE_COLOR: 2 FORCE_COLOR: 2
NODE: 18 NODE: 18
permissions:
contents: read
jobs: jobs:
browserstack: browserstack:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -11,6 +11,9 @@ env:
FORCE_COLOR: 2 FORCE_COLOR: 2
NODE: 18 NODE: 18
permissions:
contents: read
jobs: jobs:
bundlewatch: bundlewatch:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -10,8 +10,15 @@ on:
env: env:
FORCE_COLOR: 2 FORCE_COLOR: 2
permissions:
contents: read
jobs: jobs:
cspell: cspell:
permissions:
# allow streetsidesoftware/cspell-action to fetch files for commits and PRs
contents: read
pull-requests: read
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@@ -11,6 +11,9 @@ env:
FORCE_COLOR: 2 FORCE_COLOR: 2
NODE: 18 NODE: 18
permissions:
contents: read
jobs: jobs:
css: css:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -11,6 +11,9 @@ env:
FORCE_COLOR: 2 FORCE_COLOR: 2
NODE: 18 NODE: 18
permissions:
contents: read
jobs: jobs:
docs: docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -4,8 +4,15 @@ on:
schedule: schedule:
- cron: "0 0 * * *" - cron: "0 0 * * *"
permissions:
contents: read
jobs: jobs:
issue-close-require: issue-close-require:
permissions:
# allow actions-cool/issues-helper to update issues and PRs
issues: write
pull-requests: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'twbs/bootstrap' if: github.repository == 'twbs/bootstrap'
steps: steps:

View File

@@ -4,8 +4,15 @@ on:
issues: issues:
types: [labeled] types: [labeled]
permissions:
contents: read
jobs: jobs:
issue-labeled: issue-labeled:
permissions:
# allow actions-cool/issues-helper to update issues and PRs
issues: write
pull-requests: write
if: github.repository == 'twbs/bootstrap' if: github.repository == 'twbs/bootstrap'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@@ -11,8 +11,15 @@ env:
FORCE_COLOR: 2 FORCE_COLOR: 2
NODE: 18 NODE: 18
permissions:
contents: read
jobs: jobs:
run: run:
permissions:
# allow coverallsapp/github-action to create new checks issues and fetch code
checks: write
contents: read
name: JS Tests name: JS Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -11,6 +11,9 @@ env:
FORCE_COLOR: 2 FORCE_COLOR: 2
NODE: 18 NODE: 18
permissions:
contents: read
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -11,6 +11,9 @@ env:
FORCE_COLOR: 2 FORCE_COLOR: 2
NODE: 18 NODE: 18
permissions:
contents: read
jobs: jobs:
css: css:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -6,8 +6,15 @@ on:
- main - main
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
jobs: jobs:
update_release_draft: update_release_draft:
permissions:
# allow release-drafter/release-drafter to create GitHub releases and add labels to PRs
contents: write
pull-requests: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'twbs/bootstrap' if: github.repository == 'twbs/bootstrap'
steps: steps: