Skip to content

Commit

Permalink
chore: changed token to use workflow's token
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Jul 17, 2024
1 parent 109beef commit 4a6f46f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
- name: Execute directive
run: npx tsx ./src/main.ts
id: automated-merging
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Will try to upload the changes made within the DB during the run.
# If all tries fail, an artifact containing the db is uploaded.
Expand Down
2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function run() {

await plugin(inputs, env);

return returnDataToKernel(inputs.authToken, inputs.stateId, {});
return returnDataToKernel(process.env.GITHUB_TOKEN, inputs.stateId, {});
}

async function returnDataToKernel(repoToken: string, stateId: string, output: object) {
Expand Down

0 comments on commit 4a6f46f

Please sign in to comment.