Skip to content

Commit 57b9f1e

Browse files
arnestedznewman01
andauthored
chore: remove GITHUB_TOKEN from arnested/go-version-action (#259)
The action `arnested/go-version-action` doesn't need GITHUB_TOKEN anymore. Instead of getting the Go releases from git tags using GitHub's API (and thus needing the token to avoid being rate limited) it pulls the versions from https://go.dev/dl/?mode=json&include=all. Co-authored-by: Zack Newman <[email protected]>
1 parent 0fa2537 commit 57b9f1e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818
- name: Get Go version
19-
uses: arnested/go-version-action@d44f8fbecf1ac5ea61d81603e99dfec9833f592f
19+
uses: arnested/go-version-action@75e53ba83545379e9f189ecb73b53b8b3e126c7f
2020
id: go-version
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2321
- name: Set up Go
2422
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab
2523
with:

.github/workflows/tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ jobs:
99
matrix: ${{ steps.versions.outputs.matrix }}
1010
steps:
1111
- uses: actions/checkout@v3
12-
- uses: arnested/go-version-action@d44f8fbecf1ac5ea61d81603e99dfec9833f592f
12+
- uses: arnested/go-version-action@75e53ba83545379e9f189ecb73b53b8b3e126c7f
1313
id: versions
14-
env:
15-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1614

1715
run:
1816
strategy:

0 commit comments

Comments
 (0)