Skip to content

Commit 48c3056

Browse files
committed
docs(plugins/sponsors): fix required scopes
1 parent e0e40cd commit 48c3056

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

.github/scripts/files/examples.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ jobs:
136136
token: ${{ secrets.METRICS_TOKEN }}
137137
base: ""
138138
template: repository
139+
user: lowlighter
139140
repo: metrics
140141
plugin_licenses: yes
141142
plugin_licenses_setup: npm ci

.github/workflows/examples.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ jobs:
635635
uses: lowlighter/metrics@master
636636
with:
637637
filename: metrics.plugin.sponsors.svg
638-
token: ${{ secrets.METRICS_TOKEN }}
638+
token: ${{ secrets.METRICS_TOKEN_WITH_SCOPES }}
639639
base: ""
640640
plugin_sponsors: yes
641641
plugin_sponsors_sections: goal
@@ -648,7 +648,7 @@ jobs:
648648
uses: lowlighter/metrics@master
649649
with:
650650
filename: metrics.plugin.sponsors.full.svg
651-
token: ${{ secrets.METRICS_TOKEN }}
651+
token: ${{ secrets.METRICS_TOKEN_WITH_SCOPES }}
652652
base: ""
653653
plugin_sponsors: yes
654654
output_action: none
@@ -1229,6 +1229,7 @@ jobs:
12291229
token: ${{ secrets.METRICS_TOKEN }}
12301230
base: ""
12311231
template: repository
1232+
user: lowlighter
12321233
repo: metrics
12331234
plugin_licenses: yes
12341235
plugin_licenses_setup: npm ci

source/plugins/sponsors/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<td><code>👤 Users</code> <code>👥 Organizations</code> <code>📓 Repositories</code></td>
1212
</tr>
1313
<tr>
14-
<td><code>🔑 (scopeless)</code> <code>read:org (optional)</code> <code>read:user (optional)</code> <code>repo (optional)</code></td>
14+
<td><code>🔑 read:user</code> <code>🔑 read:org</code> <code>repo (optional)</code></td>
1515
</tr>
1616
<tr>
1717
<td colspan="2" align="center">
@@ -67,7 +67,7 @@ name: Sponsors goal
6767
uses: lowlighter/metrics@latest
6868
with:
6969
filename: metrics.plugin.sponsors.svg
70-
token: ${{ secrets.METRICS_TOKEN }}
70+
token: ${{ secrets.METRICS_TOKEN_WITH_SCOPES }}
7171
base: ""
7272
plugin_sponsors: yes
7373
plugin_sponsors_sections: goal
@@ -78,7 +78,7 @@ name: Sponsors introduction
7878
uses: lowlighter/metrics@latest
7979
with:
8080
filename: metrics.plugin.sponsors.full.svg
81-
token: ${{ secrets.METRICS_TOKEN }}
81+
token: ${{ secrets.METRICS_TOKEN_WITH_SCOPES }}
8282
base: ""
8383
plugin_sponsors: yes
8484

source/plugins/sponsors/examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
uses: lowlighter/metrics@latest
33
with:
44
filename: metrics.plugin.sponsors.svg
5-
token: ${{ secrets.METRICS_TOKEN }}
5+
token: ${{ secrets.METRICS_TOKEN_WITH_SCOPES }}
66
base: ""
77
plugin_sponsors: yes
88
plugin_sponsors_sections: goal
@@ -11,6 +11,6 @@
1111
uses: lowlighter/metrics@latest
1212
with:
1313
filename: metrics.plugin.sponsors.full.svg
14-
token: ${{ secrets.METRICS_TOKEN }}
14+
token: ${{ secrets.METRICS_TOKEN_WITH_SCOPES }}
1515
base: ""
1616
plugin_sponsors: yes

source/plugins/sponsors/metadata.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ supports:
1010
- organization
1111
- repository
1212
scopes:
13-
- public_access
13+
- read:user
14+
- read:org
1415
inputs:
1516

1617
plugin_sponsors:

0 commit comments

Comments
 (0)