Test credential isolation (BUILD-10699-default-restore-keys-to-default-branch) #62
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Test Credential Isolation | |
| run-name: Test credential isolation (${{ github.head_ref || github.ref_name }}) | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| credential-isolation-tests: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Vault | |
| id: secrets | |
| uses: SonarSource/vault-action-wrapper@545e7cfbb5528e7009a1edcc83e073898d292627 # 3.2.0 | |
| with: | |
| secrets: | | |
| development/github/token/{REPO_OWNER_NAME_DASH}-sonar-dummy-workflows token | GITHUB_TOKEN; | |
| - name: Trigger and wait for credential isolation tests | |
| uses: convictional/trigger-workflow-and-wait@f69fa9eedd3c62a599220f4d5745230e237904be # v1.6.5 | |
| with: | |
| owner: SonarSource | |
| repo: sonar-dummy | |
| github_token: ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN }} | |
| ref: master | |
| workflow_file_name: test-cache-isolation.yaml | |
| client_payload: | | |
| { | |
| "cache_action_ref": "${{ github.head_ref || github.ref_name }}" | |
| } |