Skip to content

Commit

Permalink
use GH_PAT instead GITHUB_TOKEN, because the GITHUB_TOKEN has not per…
Browse files Browse the repository at this point in the history
…missions
  • Loading branch information
zzcwoshizz committed Apr 17, 2023
1 parent 40174a4 commit d02157c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wicked-turtles-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zcloak/dev": minor
---

use GH_PAT instead GITHUB_TOKEN, because the GITHUB_TOKEN has not permissions
2 changes: 1 addition & 1 deletion packages/dev/scripts/zcloak-ci-ghact-app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const argv = yargs(process.argv.slice(2))

let level;

const repo = `https://${process.env.GITHUB_TOKEN}@github.com/${process.env.GITHUB_REPOSITORY}.git`;
const repo = `https://${process.env.GH_PAT}@github.com/${process.env.GITHUB_REPOSITORY}.git`;

function runClean() {
execSync('yarn zcloak-dev-clean-build');
Expand Down

0 comments on commit d02157c

Please sign in to comment.