File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,31 @@ name: Build
22
33permissions :
44 contents : read
5+ id-token : write
56
67on :
78 workflow_call :
9+ secrets :
10+ VAULT_URL :
11+ required : true
812
913jobs :
1014 build :
1115 runs-on : ubuntu-latest
1216
1317 steps :
18+ - name : ' Retrieve Secrets from Vault'
19+ id : vault
20+ 21+ with :
22+ url : ${{ secrets.VAULT_URL }}
23+ role : ${{ github.event.repository.name }}-github-action
24+ method : jwt
25+ path : github-actions
26+ exportEnv : false
27+ secrets : |
28+ github/token/${{ github.event.repository.name }}-semantic-release token | GITHUB_TOKEN;
29+
1430 - name : Checkout code
1531 uses : actions/checkout@v5
1632
Original file line number Diff line number Diff line change 88
99jobs :
1010 build :
11+ permissions :
12+ contents : read
13+ id-token : write
1114 uses : ./.github/workflows/build.yaml
15+ secrets :
16+ VAULT_URL : ${{ secrets.VAULT_URL }}
1217
1318 check :
1419 needs : build
You can’t perform that action at this time.
0 commit comments