Skip to content

Commit a26da1c

Browse files
committed
ci: Add github token to avoid rate limiting in intellij tests
1 parent 7800223 commit a26da1c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Build and test
22
on: [push]
33

4+
permissions:
5+
# The GITHUB_TOKEN is used to download AppMap service
6+
# binaries in addition to cloning the repository; by explicitly
7+
# setting permissions, we ensure it has no unnecessary access.
8+
contents: read
9+
410
jobs:
511
build-and-check:
612
name: Build and check
@@ -106,5 +112,8 @@ jobs:
106112
env:
107113
BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }}
108114
TERM: xterm
115+
# Github token is just to avoid rate limiting when IntelliJ tests
116+
# are run and download the AppMap service binaries
117+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109118
working-directory: ./agent
110119
run: bin/test_run

0 commit comments

Comments
 (0)