Skip to content

Commit 937f0a2

Browse files
authored
BUILD-4733: Use vault secrets instead of github
Missed that one
1 parent 629afcc commit 937f0a2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/update_coverage.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@ jobs:
1212
TMP_BRANCH: temporary/coverage_update
1313

1414
steps:
15+
- name: get secrets
16+
id: secrets
17+
uses: SonarSource/vault-action-wrapper@7160b50d75c02fe48eb3c8d354ca4fd7029f546a # tag=2.5.0-4
18+
with:
19+
secrets: |
20+
development/github/token/SonarSource-rspec-coverage token | COVERAGE_GITHUB_TOKEN;
1521
- uses: actions/checkout@v4
1622
with:
1723
persist-credentials: true
1824
ref: master
1925
path: 'rspec'
20-
token: ${{ secrets.COVERAGE_GITHUB_TOKEN }}
21-
26+
token: ${{ fromJSON(steps.secrets.outputs.vault).COVERAGE_GITHUB_TOKEN }}
2227
- uses: actions/setup-python@v4
2328
with:
2429
python-version: '3.9'
@@ -33,7 +38,7 @@ jobs:
3338
3439
- name: 'Regenerate coverage information'
3540
env:
36-
GITHUB_TOKEN: ${{ secrets.COVERAGE_GITHUB_TOKEN }}
41+
GITHUB_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).COVERAGE_GITHUB_TOKEN }}
3742
id: gen-coverage
3843
working-directory: 'rspec/rspec-tools'
3944
run: |

0 commit comments

Comments
 (0)