From 789c5efa407a7682caac33b033a1f19969bafee6 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Fri, 23 Jul 2021 11:36:22 -0400 Subject: [PATCH] authorize API call to list releases, to avoid rate limits --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 115620a..85bfd02 100644 --- a/action.yml +++ b/action.yml @@ -25,7 +25,7 @@ runs: go get github.com/google/ko@main ;; latest-release) - tag=$(curl -s https://api.github.com/repos/google/ko/releases/latest | jq -r '.tag_name') + tag=$(curl -s -u "username:${{ github.token }}" https://api.github.com/repos/google/ko/releases/latest | jq -r '.tag_name') ;; *) tag="${{ inputs.version }}"