You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
Forcing users to add github_token: ${{ secrets.GITHUB_TOKEN }} adds unnecessary boilerplate, since its possible to extract this token in the action.yml file (see here for an example).
Describe the solution you'd like
Update the action.yml file to default the github_token input to ${{ github.token }}, then if users want to use a personal access token or deploy key instead they can set those inputs to override it.
The text was updated successfully, but these errors were encountered:
When I found this feature at actions/checkout a few months ago, other official actions were still using an empty token input so I ignored to apply it to this action. I thought that it was friendly to notify users that this action will use a built-in token. Today, only 3 official actions are using the default: ${{ github.token }} approach.
Personally, I think the time for using the default: ${{ github.token }} approach has come. The above 4 official actions will also start to use the approach.
OK. I will work on this. Note that we have some considerations for using the approach. In this action, we need to manage the order of auth tokens and the behavior on fork repositories.
Is your feature request related to a problem? Please describe
Forcing users to add
github_token: ${{ secrets.GITHUB_TOKEN }}
adds unnecessary boilerplate, since its possible to extract this token in theaction.yml
file (see here for an example).Describe the solution you'd like
Update the
action.yml
file to default thegithub_token
input to${{ github.token }}
, then if users want to use a personal access token or deploy key instead they can set those inputs to override it.The text was updated successfully, but these errors were encountered: