Skip to content

Commit

Permalink
update gh token env var name
Browse files Browse the repository at this point in the history
github doesn't like GITHUB_ prefix for actions secrets
  • Loading branch information
sethetter committed Jul 2, 2024
1 parent 5ffaa95 commit 050bc33
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
GITHUB_TOKEN=<personal-access-token>
APP_GITHUB_TOKEN=<personal-access-token>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ involved with and contribute to the devICT community.

### Configuration

- `GITHUB_TOKEN`, required for making GitHub API calls.
- `APP_GITHUB_TOKEN`, required for making GitHub API calls.
- Generate one from your
[GitHub settings](https://github.com/settings/tokens?type=beta).
- Does not need any special permissions, it only accesses public information.
2 changes: 1 addition & 1 deletion routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const DEVICT_REPOS: string[] = [
];

export default async function Home() {
const ghToken = Deno.env.get("GITHUB_TOKEN");
const ghToken = Deno.env.get("APP_GITHUB_TOKEN");
assert(ghToken);

const contributors = await fetchGitHubContributors(ghToken, DEVICT_REPOS);
Expand Down
2 changes: 1 addition & 1 deletion routes/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const COMMUNITY_REPOS: string[] = [

export default async function Home() {
const ALL_REPOS = DEVICT_REPOS.concat(COMMUNITY_REPOS);
const ghToken = Deno.env.get("GITHUB_TOKEN");
const ghToken = Deno.env.get("APP_GITHUB_TOKEN");
assert(ghToken);

const issues = await getHelpWantedIssues({
Expand Down

0 comments on commit 050bc33

Please sign in to comment.