From 57b9f1e86c4ff48551d43a76be6bec81669a7833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Thu, 28 Apr 2022 20:40:37 +0200 Subject: [PATCH] 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 --- .github/workflows/release.yml | 4 +--- .github/workflows/tests.yml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6950dc5..0711cc10 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 55b6b107..82253294 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: