BUILD-5580: Add missing id-token: write permissions for the Vault action and update the action to v3
This commit is contained in:
parent
8bfe3b7de1
commit
1c285ade7a
7
.github/workflows/add_language.yml
vendored
7
.github/workflows/add_language.yml
vendored
@ -14,12 +14,15 @@ on:
|
||||
|
||||
jobs:
|
||||
add_language_to_rule:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write # OIDC auth for Vault
|
||||
contents: read # checkout
|
||||
|
||||
steps:
|
||||
- name: 'get secrets'
|
||||
id: secrets
|
||||
uses: SonarSource/vault-action-wrapper@7160b50d75c02fe48eb3c8d354ca4fd7029f546a # tag=2.5.0-4
|
||||
uses: SonarSource/vault-action-wrapper@v3
|
||||
with:
|
||||
secrets: |
|
||||
development/github/token/SonarSource-rspec-coverage token | COVERAGE_GITHUB_TOKEN;
|
||||
|
5
.github/workflows/create_new_rspec.yml
vendored
5
.github/workflows/create_new_rspec.yml
vendored
@ -12,11 +12,14 @@ on:
|
||||
jobs:
|
||||
create_new_rule:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write # OIDC auth for Vault
|
||||
contents: read # checkout
|
||||
|
||||
steps:
|
||||
- name: 'get secrets'
|
||||
id: secrets
|
||||
uses: SonarSource/vault-action-wrapper@7160b50d75c02fe48eb3c8d354ca4fd7029f546a # tag=2.5.0-4
|
||||
uses: SonarSource/vault-action-wrapper@v3
|
||||
with:
|
||||
secrets: |
|
||||
development/github/token/SonarSource-rspec-coverage token | COVERAGE_GITHUB_TOKEN;
|
||||
|
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@ -9,12 +9,13 @@ jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-20.04
|
||||
permissions:
|
||||
id-token: write # OIDC auth for Vault
|
||||
pull-requests: read # Get the list and metadata of open new-rule PRs
|
||||
contents: write # Get the contents of open new-rule PRs, the 'master'; write to 'gh-pages' branch
|
||||
steps:
|
||||
- name: 'get secrets'
|
||||
id: secrets
|
||||
uses: SonarSource/vault-action-wrapper@7160b50d75c02fe48eb3c8d354ca4fd7029f546a # tag=2.5.0-4
|
||||
uses: SonarSource/vault-action-wrapper@v3
|
||||
with:
|
||||
secrets: |
|
||||
development/github/token/SonarSource-rspec-coverage token | COVERAGE_GITHUB_TOKEN;
|
||||
|
7
.github/workflows/update_coverage.yml
vendored
7
.github/workflows/update_coverage.yml
vendored
@ -5,16 +5,17 @@ on:
|
||||
|
||||
jobs:
|
||||
update_coverage:
|
||||
permissions:
|
||||
id-token: write
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write # OIDC auth for Vault
|
||||
contents: read # checkout
|
||||
env:
|
||||
TMP_BRANCH: temporary/coverage_update
|
||||
|
||||
steps:
|
||||
- name: 'get secrets'
|
||||
id: secrets
|
||||
uses: SonarSource/vault-action-wrapper@7160b50d75c02fe48eb3c8d354ca4fd7029f546a # tag=2.5.0-4
|
||||
uses: SonarSource/vault-action-wrapper@v3
|
||||
with:
|
||||
secrets: |
|
||||
development/github/token/SonarSource-rspec-coverage token | COVERAGE_GITHUB_TOKEN;
|
||||
|
7
.github/workflows/update_quickfix_status.yml
vendored
7
.github/workflows/update_quickfix_status.yml
vendored
@ -1,6 +1,6 @@
|
||||
name: Update quick fix status
|
||||
|
||||
on:
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
rule:
|
||||
@ -26,10 +26,13 @@ jobs:
|
||||
update_quickfix_status:
|
||||
name: Update quick fix status
|
||||
runs-on: ubuntu-20.04
|
||||
permissions:
|
||||
id-token: write # OIDC auth for Vault
|
||||
contents: read # checkout
|
||||
steps:
|
||||
- name: 'get secrets'
|
||||
id: secrets
|
||||
uses: SonarSource/vault-action-wrapper@7160b50d75c02fe48eb3c8d354ca4fd7029f546a # tag=2.5.0-4
|
||||
uses: SonarSource/vault-action-wrapper@v3
|
||||
with:
|
||||
secrets: |
|
||||
development/github/token/SonarSource-rspec-coverage token | COVERAGE_GITHUB_TOKEN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user