Skip to content

Commit

Permalink
fixup! Add option to not revoke token
Browse files Browse the repository at this point in the history
  • Loading branch information
tibdex committed Sep 19, 2023
1 parent f8bc6bd commit 44e1c6f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
# The only required permission is `Repository permissions > Metadata: Read-only`.
app_id: ${{ vars.TEST_GITHUB_APP_ID }}
private_key: ${{ secrets.TEST_GITHUB_APP_PRIVATE_KEY }}
revoke: true
- if: ${{ steps.create_token.outcome != 'skipped' }}
run: node --eval "assert('${{ steps.create_token.outputs.token }}'.length > 0);"
- run: npm run prettier -- --check
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
# ["actions/toolkit", "github/docs"]

# Optional.
# revoke: "false"
# revoke: false

- run: "echo 'The created token is masked: ${{ steps.create_token.outputs.token }}'"
```
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ inputs:
See https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app's `repositories`.
revoke:
description: Revoke the token at the end of the job.
default: "true"
default: true
outputs:
token:
description: An installation access token for the GitHub App.
Expand Down

0 comments on commit 44e1c6f

Please sign in to comment.