Skip to content

Commit 5be9ec7

Browse files
SONARJAVA-6291 SubmitReview: Use Vault token (#5586)
1 parent 2f9782b commit 5be9ec7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/SubmitReview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
runs-on: sonar-xs-public
1111
permissions:
1212
id-token: write
13-
pull-requests: read
1413
# For external PR, ticket should be moved manually
1514
if: |
1615
github.event.pull_request.head.repo.full_name == github.repository
@@ -21,10 +20,11 @@ jobs:
2120
uses: SonarSource/vault-action-wrapper@v3
2221
with:
2322
secrets: |
23+
development/github/token/{REPO_OWNER_NAME_DASH}-jira token | GITHUB_TOKEN;
2424
development/kv/data/jira user | JIRA_USER;
2525
development/kv/data/jira token | JIRA_TOKEN;
2626
- uses: sonarsource/gh-action-lt-backlog/SubmitReview@v2
2727
with:
28-
github-token: ${{secrets.GITHUB_TOKEN}}
28+
github-token: ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN }}
2929
jira-user: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}
3030
jira-token: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_TOKEN }}

0 commit comments

Comments
 (0)