Skip to content

Commit 54a180b

Browse files
authored
Use github.token instead of secrets.GITHUB_TOKEN
${{ github.token }} is special because it's available on PR builds. ${{ secrets.GITHUB_TOKEN }} makes it look like a regular secret (which it isn't).
1 parent bb33023 commit 54a180b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/generate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: dotnet restore
2323

2424
- name: Generate
25-
run: dotnet run --project ./Tools/Generate/Generate.csproj -- ${{ secrets.GITHUB_TOKEN }} ./Octokit.GraphQL/
25+
run: dotnet run --project ./Tools/Generate/Generate.csproj -- ${{ github.token }} ./Octokit.GraphQL/
2626

2727
- name: Build
2828
run: dotnet build

0 commit comments

Comments
 (0)