DEV Community

Discussion on: GitHub Action for Updating Your Readme with a Download Button

Collapse
 
michaelcurrin profile image
Michael Currin

To clarify on the token.

You are using the built in token, to avoid manually creating a token. As an extra benefit, the built in token only has accept to the current repo and the manually generated one has access to all of a user's repos.

These two are equivalent

env:
  token: ${{ secrets.GITHUB_TOKEN }}
Enter fullscreen mode Exit fullscreen mode
env:
  token: ${{ github.token }}
Enter fullscreen mode Exit fullscreen mode