Skip to content

Commit

Permalink
add: iohk-devops empty perms token to netrc to avoid rate limit failures
Browse files Browse the repository at this point in the history
  • Loading branch information
johnalotoski committed May 20, 2024
1 parent fa4ae5a commit 1f3bf0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
git config user.name github-actions
git config user.email github-actions@github.com
echo "${{secrets.NIX_SIGNING_KEY}}" > hydra_key
echo "${{secrets.IOHK_DEVOPS_NETRC_FILE}}" > .netrc
nix develop \
--ignore-environment \
--keep AWS_ACCESS_KEY_ID \
Expand Down
2 changes: 1 addition & 1 deletion packages.cr
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class CAPkgs
def fetch_github_releases(org_name, repo_name, dest)
releases_url = "https://api.github.com/repos/#{org_name}/#{repo_name}/releases"
# Use curl here to take advantage of netrc for the token without having to parse it
curl_result = sh("curl", "-L", "-s", "--fail-with-body", releases_url)
curl_result = sh("curl", "--netrc", "-L", "-s", "--fail-with-body", releases_url)
raise "Couldn't fetch releases for '#{releases_url}'" unless curl_result.success?

tag_names = Array(GithubRelease).from_json(curl_result.stdout).map { |release| release.tag_name }
Expand Down

0 comments on commit 1f3bf0a

Please sign in to comment.