Skip to content

Commit acdb1af

Browse files
committed
Move codecov action to separate pull_request_target workflow
Should mean CI can get green on forked PRs.
1 parent ade2d37 commit acdb1af

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88

99
jobs:
1010
build:
11-
permissions:
12-
contents: write
13-
id-token: write
14-
1511
runs-on: ubuntu-latest
1612
continue-on-error: ${{ matrix.experimental }}
1713
strategy:

.github/workflows/codecov.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Codecov
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request_target:
7+
branches: [ master ]
8+
9+
jobs:
10+
codecov:
11+
permissions:
12+
id-token: write
13+
contents: write
14+
runs-on: ubuntu-latest
15+
name: Codecov
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: ${{ matrix.ruby }}
21+
bundler-cache: true
22+
- uses: codecov/codecov-action@v4
23+
with:
24+
use_oidc: true
25+

0 commit comments

Comments
 (0)