Skip to content

Commit d94224a

Browse files
authored
🌱 set GITHUB_TOKEN, so that Lychee does not get rate-limited. (#1726)
1 parent b56f1b4 commit d94224a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/pr-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
# if there's a diff then the workflow will exit here.
4545
- name: Run make verify
4646
run: make BUILD_IN_CONTAINER=false verify
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4749

4850
- name: Lint Golang Code
4951
run: make BUILD_IN_CONTAINER=false lint-golang-ci

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ ifeq ($(BUILD_IN_CONTAINER),true)
762762
$(BUILDER_IMAGE):$(BUILDER_IMAGE_VERSION) $@;
763763
else
764764
@lychee --version
765+
@if [ -z "$${GITHUB_TOKEN}" ]; then echo "GITHUB_TOKEN is not set"; exit 1; fi
765766
lychee --verbose --config .lychee.toml ./*.md ./docs/**/*.md 2>&1 | grep -vP '\[(200|EXCLUDED)\]'
766767
endif
767768

0 commit comments

Comments
 (0)