File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 2222 )
2323 )
2424 steps :
25- - uses : tibdex/backport@9565281eda0731b1d20c4025c43339fb0a23812e # v2.0.4
25+ - name : Fetch ephemeral GitHub token
26+ id : fetch-token
27+ uses : elastic/ci-gh-actions/fetch-github-token@8a7604dfdd4e7fe21f969bfe9ff96e17635ea577 # v1.0.0
2628 with :
27- github_token : ${{ secrets.GITHUB_TOKEN }}
29+ vault-instance : " ci-prod"
30+ - uses : tibdex/backport@9565281eda0731b1d20c4025c43339fb0a23812e # v2.0.4
31+ with :
32+ github_token : ${{ steps.fetch-token.outputs.token }}
Original file line number Diff line number Diff line change 4444 tag=$(echo "$tag_meta" | cut -d '.' -f1)
4545 npm publish --provenance --access public --tag "$tag"
4646 fi
47+ - name : Fetch ephemeral GitHub token
48+ id : fetch-token
49+ uses : elastic/ci-gh-actions/fetch-github-token@8a7604dfdd4e7fe21f969bfe9ff96e17635ea577 # v1.0.0
50+ with :
51+ vault-instance : " ci-prod"
4752 - name : Publish version on GitHub
4853 run : |
4954 version=$(jq -r .version package.json)
6671 fi
6772 env :
6873 BRANCH_NAME : ${{ github.event.inputs.branch }}
69- GH_TOKEN : ${{ github .token }}
74+ GH_TOKEN : ${{ steps.fetch-token.outputs .token }}
You can’t perform that action at this time.
0 commit comments