Explicit permissions for GITHUB_TOKEN where write is needed
The default GITHUB_TOKEN permissions will be set to read-only. See https://sonarsource.atlassian.net/browse/SSF-619 for background information.
This commit is contained in:
parent
3445da4ee7
commit
765538f971
3
.github/workflows/add_language.yml
vendored
3
.github/workflows/add_language.yml
vendored
@ -15,6 +15,9 @@ on:
|
||||
jobs:
|
||||
add_language_to_rule:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
3
.github/workflows/create_new_rspec.yml
vendored
3
.github/workflows/create_new_rspec.yml
vendored
@ -12,6 +12,9 @@ on:
|
||||
jobs:
|
||||
create_new_rule:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
3
.github/workflows/update_quickfix_status.yml
vendored
3
.github/workflows/update_quickfix_status.yml
vendored
@ -26,6 +26,9 @@ jobs:
|
||||
update_quickfix_status:
|
||||
name: Update quick fix status
|
||||
runs-on: ubuntu-20.04
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
|
Loading…
x
Reference in New Issue
Block a user