Skip to content

Commit 0550b58

Browse files
committed
docs(readme): update to reflect new token perms
1 parent bdbbe74 commit 0550b58

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
17.6 KB
Loading

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
config-file: markdown_link_check_config.json
2323
dogfooding:
2424
runs-on: ubuntu-latest
25+
permissions:
26+
contents: write
2527
steps:
2628
- uses: actions/checkout@master # only required for eating our own dog food
2729
- uses: ./

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ on:
5757
jobs:
5858
single-commit:
5959
runs-on: ubuntu-latest
60+
permissions:
61+
contents: write
6062
steps:
6163
- uses: bcanseco/github-contribution-graph-action@v2
6264
env:
@@ -78,6 +80,8 @@ on: push
7880
jobs:
7981
backfill-commits:
8082
runs-on: ubuntu-latest
83+
permissions:
84+
contents: write
8185
steps:
8286
- uses: bcanseco/github-contribution-graph-action@v2
8387
env:
@@ -157,6 +161,14 @@ env:
157161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
158162
```
159163

164+
#### Getting 403 errors? ❌
165+
166+
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.
167+
168+
You can alternatively set this as a repo-level default:
169+
170+
![](./.github/images/token-permissions.png)
171+
160172
### `GIT_EMAIL` 📧
161173

162174
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).

0 commit comments

Comments
 (0)