Skip to content

Commit 774e4e2

Browse files
fix: ensure GITHUB_TOKEN is always set for mise in CI
Fall back to github.token when PROJEN_GITHUB_TOKEN secret is not configured, so mise's aqua backend can authenticate GitHub API calls to download tools like trivy without hitting rate limits.
1 parent 4d8f58c commit 774e4e2

3 files changed

Lines changed: 2 additions & 19 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/upgrade.yml

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,12 @@ const project = new awscdk.AwsCdkTypeScriptApp({
7575
uses: 'jdx/mise-action@v3.6.2',
7676
with: {
7777
cache: true,
78-
install: true,
79-
},
80-
env: {
81-
GITHUB_TOKEN: '${{ github.token }}',
82-
GITHUB_API_TOKEN: '${{ github.token }}',
8378
},
8479
},
8580
],
8681
buildWorkflowOptions: {
8782
env: {
88-
GITHUB_TOKEN: '${{ secrets.PROJEN_GITHUB_TOKEN }}',
89-
MISE_GITHUB_TOKEN: '${{ github.token }}',
90-
GITHUB_API_TOKEN: '${{ github.token }}',
83+
GITHUB_TOKEN: '${{ secrets.PROJEN_GITHUB_TOKEN || github.token }}',
9184
},
9285
},
9386
gitignore: [

0 commit comments

Comments
 (0)