File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ jobs:
130130 environment :
131131 name : feedz.io
132132
133+ permissions :
134+ contents : read
135+ id-token : write
136+
133137 steps :
134138
135139 - name : Download packages
@@ -142,11 +146,17 @@ jobs:
142146 with :
143147 dotnet-version : ${{ needs.build-test.outputs.dotnet-sdk-version }}
144148
145- # TODO Get the feedz.io token from Vault
149+ # TODO Store the feedz.io token in Vault
150+ - uses : grafana/shared-workflows/actions/get-vault-secrets@9f37f656e063f0ad0b0bfc38d49894b57d363936 # get-vault-secrets/v1.2.1
151+ id : get-token
152+ with :
153+ export_env : false
154+ repo_secrets : |
155+ token=feedz-io:token
146156
147157 - name : Push NuGet packages to feedz.io
148158 shell : bash
149159 env :
150- API_KEY : ${{ env.FEEDZ_IO_TOKEN }}
160+ API_KEY : ${{ fromJSON(steps.get-token.outputs.secrets).token }}
151161 SOURCE : ' https://f.feedz.io/${{ github.repository }}/nuget/index.json'
152162 run : dotnet nuget push "*.nupkg" --api-key "${API_KEY}" --skip-duplicate --source "${SOURCE}"
You can’t perform that action at this time.
0 commit comments