Skip to content

Commit 8433575

Browse files
committed
pass GITHUB_TOKEN to smoke-test.sh to avoid GitHub API rate limits for "stack new"
1 parent 4e52825 commit 8433575

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/build-and-push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,11 @@ jobs:
135135
136136
docker pull "${FULL_IMAGE_NAME}"
137137
138+
# GITHUB_TOKEN: "stack new" uses GitHub API to fetch templates, may hit rate limits without auth
139+
# See: https://github.com/commercialhaskell/stack/issues/6034
138140
docker run --rm \
139141
--platform ${{ matrix.platform }} \
142+
-e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \
140143
-v ${{ github.workspace }}/.github/scripts/smoke-test.sh:/tmp/smoke-test.sh \
141144
-v ${{ github.workspace }}/docker/haskell-versions.env:/tmp/haskell-versions.env \
142145
-w /tmp \

0 commit comments

Comments
 (0)