Url to log https://github.com/trustwallet/assets/pull/1898/checks?check_run_id=597005450
name: Formatter
on:
push:
branches:
- '*'
- '!master'
pull_request:
branches:
- 'master'
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_API_TOKEN }}
Secrets aren't available to fork PRs.
The token input is empty. I confirmed by checking the log at the beginning of the checkout step. The token input isn't logged, which means it's empty.
The checkout step should detect this case earlier and print a better error message.
Secrets aren't available to fork PRs.
The
tokeninput is empty. I confirmed by checking the log at the beginning of the checkout step. Thetokeninput isn't logged, which means it's empty.
Thank you for clarifying, after detailed reading I found this is has been an issue for many people to access secrets in forked PR in public repo (link1, link2)
The checkout step should detect this case earlier and print a better error message.
Adding error message can be considered as a fix at this moment for this issue
@ericsciple are PRs from @dependabot fork PRs? (Like this one)
token is not empty for me, but I'm getting could not read Username for 'https://github.com': terminal prompts disabled. See https://github.com/Starkast/wikimum/runs/728992417?check_suite_focus=true#step:2:31. Link to the workflow code that was run.
are PRs from @dependabot fork PRs
No, they are not... sorry for the noise, there was an issue with my PAT, it is now working.
Hustle @humbleade