Skip to content

Commit dcc17a0

Browse files
committed
PR feedback: fix Danger's GitHub token, run on all branches
1 parent 0da8ef5 commit dcc17a0

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: CI
2-
on:
3-
push:
4-
branches: [master]
5-
pull_request:
6-
branches: [master]
2+
on: [push, pull_request]
73

84
jobs:
95
danger:
@@ -15,10 +11,11 @@ jobs:
1511
ruby-version: 3.4.4
1612
- name: Install dependencies
1713
run: bundle install --jobs 4 --retry 3
18-
- name: Run danger
19-
env:
20-
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21-
run: bundle exec danger
14+
- name: Run Danger
15+
run: |
16+
# the token is public, has public_repo scope and belongs to the grape-bot user owned by @dblock, this is ok
17+
TOKEN=$(echo -n Z2hwX2lYb0dPNXNyejYzOFJyaTV3QUxUdkNiS1dtblFwZTFuRXpmMwo= | base64 --decode)
18+
DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
2219
2320
test:
2421
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)