mirror of
https://github.com/bcanseco/github-contribution-graph-action.git
synced 2025-10-09 13:41:58 +03:00
docs(readme): update to reflect new token perms
This commit is contained in:
BIN
.github/images/token-permissions.png
vendored
Normal file
BIN
.github/images/token-permissions.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -22,6 +22,8 @@ jobs:
|
||||
config-file: markdown_link_check_config.json
|
||||
dogfooding:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@master # only required for eating our own dog food
|
||||
- uses: ./
|
||||
|
||||
12
README.md
12
README.md
@@ -57,6 +57,8 @@ on:
|
||||
jobs:
|
||||
single-commit:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: bcanseco/github-contribution-graph-action@v2
|
||||
env:
|
||||
@@ -78,6 +80,8 @@ on: push
|
||||
jobs:
|
||||
backfill-commits:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: bcanseco/github-contribution-graph-action@v2
|
||||
env:
|
||||
@@ -157,6 +161,14 @@ env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
```
|
||||
|
||||
#### Getting 403 errors? ❌
|
||||
|
||||
Make sure your token has [write permission for the `contents` scope](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs). If you're using the examples in this README, this is already done for you.
|
||||
|
||||
You can alternatively set this as a repo-level default:
|
||||
|
||||

|
||||
|
||||
### `GIT_EMAIL` 📧
|
||||
|
||||
This GitHub Action requires an email associated with your GitHub account. If you provide a random or throwaway email, contributions won't show up on your GitHub profile. [Read more](https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-settings-on-your-profile/why-are-my-contributions-not-showing-up-on-my-profile#you-havent-added-your-local-git-commit-email-to-your-profile).
|
||||
|
||||
Reference in New Issue
Block a user