Skip to content

Commit

Permalink
chore: remove GITHUB_TOKEN from arnested/go-version-action (#259)
Browse files Browse the repository at this point in the history
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 <z@znewman.net>
  • Loading branch information
arnested and znewman01 authored Apr 28, 2022
1 parent 0fa2537 commit 57b9f1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ jobs:
with:
fetch-depth: 0
- name: Get Go version
uses: arnested/go-version-action@d44f8fbecf1ac5ea61d81603e99dfec9833f592f
uses: arnested/go-version-action@75e53ba83545379e9f189ecb73b53b8b3e126c7f
id: go-version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab
with:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ jobs:
matrix: ${{ steps.versions.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- uses: arnested/go-version-action@d44f8fbecf1ac5ea61d81603e99dfec9833f592f
- uses: arnested/go-version-action@75e53ba83545379e9f189ecb73b53b8b3e126c7f
id: versions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

run:
strategy:
Expand Down

0 comments on commit 57b9f1e

Please sign in to comment.