Skip to content

Commit

Permalink
🐛 Add fallback token
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Mar 3, 2021
1 parent fe9fd60 commit 2207872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { generateSummary } from "./summary";
import { update } from "./update";
import { updateTemplate } from "./update-template";

const token = getInput("token") || process.env.GITHUB_TOKEN;
const token = getInput("token") || process.env.GH_PAT || process.env.GITHUB_TOKEN;
const SECRETS_CONTEXT = process.env.SECRETS_CONTEXT || "{}";
const allSecrets: Record<string, string> = JSON.parse(SECRETS_CONTEXT);
Object.keys(allSecrets).forEach((key) => {
Expand Down

0 comments on commit 2207872

Please sign in to comment.