Action to generate and optionally scope down application tokens for use in workflows.
Example:
- name: Generate Token
uses: dev-bio/[email protected]
id: token
with:
app-id: ${{ secrets.APP_ID }}
app-pk: ${{ secrets.APP_PK }}
permissions: | # optional settings for scoping down the token
repositories: [ 'dev-bio/actions-token' ]
scopes:
contents: write
metadata: read
- name: Privileged Action
uses: something/[email protected]
with:
token: ${{ steps.token.outputs.token }}