trex icon indicating copy to clipboard operation
trex copied to clipboard

[workspace] Refresh GH token before CI release step

Open ascariandrea opened this issue 2 years ago • 0 comments

The last CI run for publishing the GH release has failed due to the expired token.

I suggest to add a "refresh token" step before running the release process, so to keep the secret rotating and prevent such error.

It seems to be easily solvable with this action

uses: hmanzur/[email protected]
with:
  name: 'RELEASE_TOKEN'
  value: 
  repository: 'tracking-exposed/trex'
  token: ${{ secrets.RELEASE_TOKEN }}
  org: true
  visibility: 'all'

ascariandrea avatar Dec 12 '22 09:12 ascariandrea