mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-05-14 15:42:52 +03:00
SQSCANGHA-143 SubmitReview: Use Vault token (#238)
This commit is contained in:
@@ -10,7 +10,6 @@ jobs:
|
|||||||
runs-on: github-ubuntu-latest-s
|
runs-on: github-ubuntu-latest-s
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
pull-requests: read
|
|
||||||
# For external PR, ticket should be moved manually
|
# For external PR, ticket should be moved manually
|
||||||
if: |
|
if: |
|
||||||
github.event.pull_request.head.repo.full_name == github.repository
|
github.event.pull_request.head.repo.full_name == github.repository
|
||||||
@@ -21,10 +20,11 @@ jobs:
|
|||||||
uses: SonarSource/vault-action-wrapper@v3
|
uses: SonarSource/vault-action-wrapper@v3
|
||||||
with:
|
with:
|
||||||
secrets: |
|
secrets: |
|
||||||
|
development/github/token/{REPO_OWNER_NAME_DASH}-jira token | GITHUB_TOKEN;
|
||||||
development/kv/data/jira user | JIRA_USER;
|
development/kv/data/jira user | JIRA_USER;
|
||||||
development/kv/data/jira token | JIRA_TOKEN;
|
development/kv/data/jira token | JIRA_TOKEN;
|
||||||
- uses: sonarsource/gh-action-lt-backlog/SubmitReview@v2
|
- uses: sonarsource/gh-action-lt-backlog/SubmitReview@v2
|
||||||
with:
|
with:
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
github-token: ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN }}
|
||||||
jira-user: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}
|
jira-user: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_USER }}
|
||||||
jira-token: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_TOKEN }}
|
jira-token: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user