Skip to content

Commit e99a718

Browse files
committed
add secrets in tests
1 parent 8ec2726 commit e99a718

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/test-cni.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
integration-cni-tests:
1515
permissions:
1616
contents: read
17+
id-token: write
1718
runs-on: runs-on,runner=4cpu-linux-x64,run-id=${{ github.run_id }}
1819
timeout-minutes: 60
1920
strategy:
@@ -26,6 +27,13 @@ jobs:
2627
uses: actions/setup-go@v5
2728
with:
2829
go-version-file: 'go.mod'
30+
- name: Retrieve Stage Registry Credentials from Vault
31+
uses: rancher-eio/read-vault-secrets@main
32+
with:
33+
secrets: |
34+
secret/data/github/repo/${{ github.repository }}/stage-registry/rancher/rke-extended-life/credentials endpoint | STAGE_REGISTRY_ENDPOINT ;
35+
secret/data/github/repo/${{ github.repository }}/stage-registry/rancher/rke-extended-life/credentials username | STAGE_REGISTRY_USERNAME ;
36+
secret/data/github/repo/${{ github.repository }}/stage-registry/rancher/rke-extended-life/credentials password | STAGE_REGISTRY_PASSWORD
2937
- name: Run ${{ matrix.cni }} check
3038
run: |
3139
./scripts/build

0 commit comments

Comments
 (0)