Skip to content

Commit b7f7e4f

Browse files
authored
curl rate limit fix (#390)
* curl rate limit fix * Update test_latest_release.yml
1 parent f42ccdf commit b7f7e4f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/test_latest_release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ permissions: {}
1212
jobs:
1313
test-latest-release:
1414
runs-on: [ubuntu-22.04]
15+
permissions:
16+
contents: read
1517
steps:
1618
- uses: actions/checkout@v4
1719

@@ -31,3 +33,5 @@ jobs:
3133

3234
- name: Run all tests with latest roc release + latest basic-cli release
3335
run: EXAMPLES_DIR=./examples/ ./ci/test_latest_release.sh
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ci/test_latest_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mv "$NIGHTLY_FOLDER" roc_nightly
3232
./roc_nightly/roc version
3333

3434
# Get the latest basic-cli release file URL
35-
CLI_RELEASES_JSON=$(curl -s https://api.github.com/repos/roc-lang/basic-cli/releases)
35+
CLI_RELEASES_JSON=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/roc-lang/basic-cli/releases)
3636
CLI_RELEASE_URL=$(echo $CLI_RELEASES_JSON | jq -r '.[0].assets | .[] | select(.name | test("\\.tar\\.br$")) | .browser_download_url')
3737

3838
# Use the latest basic-cli release as the platform for every example

0 commit comments

Comments
 (0)