Add Accept header for github revoke token (#13) #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Use Action | |
on: | |
workflow_dispatch: | |
push: | |
branches: ['main'] | |
permissions: | |
id-token: write # Needed to federate with octo-sts | |
jobs: | |
use-action: | |
name: Use Action | |
runs-on: ubuntu-latest | |
steps: | |
- id: octo-sts | |
uses: chainguard-dev/octo-sts-action@main | |
with: | |
scope: chainguard-dev/octo-sts-action | |
identity: use-action | |
- uses: actions/checkout@v4 | |
- env: | |
GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }} | |
run: gh issue create --title "Use Action" --body "This issue was created using an Octo STS token" |