This logs the SHA256 of the issued token. #41
Workflow file for this run
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: | |
pull_request_target: | |
branches: ['main'] | |
permissions: | |
id-token: write # Needed to federate with octo-sts | |
jobs: | |
use-action: | |
name: Use Action | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: refs/pull/${{ github.event.pull_request.number }}/merge | |
- id: octo-sts | |
uses: ./ | |
with: | |
scope: octo-sts/action | |
identity: use-action | |
- env: | |
GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }} | |
run: gh repo list | grep octo-sts |