From ca30b65f4ea9f033b8a6fc0ffc9816a562d13f55 Mon Sep 17 00:00:00 2001 From: Pavel Mikula <57188685+pavel-mikula-sonarsource@users.noreply.github.com> Date: Wed, 29 Apr 2026 11:16:25 +0200 Subject: [PATCH] SQSCANGHA-143 SubmitReview: Use Vault token (#238) --- .github/workflows/SubmitReview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/SubmitReview.yml b/.github/workflows/SubmitReview.yml index d5b18a7..08472bd 100644 --- a/.github/workflows/SubmitReview.yml +++ b/.github/workflows/SubmitReview.yml @@ -10,7 +10,6 @@ jobs: runs-on: github-ubuntu-latest-s permissions: id-token: write - pull-requests: read # For external PR, ticket should be moved manually if: | github.event.pull_request.head.repo.full_name == github.repository @@ -21,10 +20,11 @@ jobs: uses: SonarSource/vault-action-wrapper@v3 with: secrets: | + development/github/token/{REPO_OWNER_NAME_DASH}-jira token | GITHUB_TOKEN; development/kv/data/jira user | JIRA_USER; development/kv/data/jira token | JIRA_TOKEN; - uses: sonarsource/gh-action-lt-backlog/SubmitReview@v2 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-token: ${{ fromJSON(steps.secrets.outputs.vault).JIRA_TOKEN }}