Skip to content

Commit d5e23dd

Browse files
authored
Merge pull request #336 from stan-dev/upload-artifact-v7
Update GHA Step
2 parents 095a09e + 168b63d commit d5e23dd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test-coverage.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ on:
77

88
name: test-coverage.yaml
99

10-
permissions: read-all
10+
permissions:
11+
contents: read
12+
id-token: write
1113

1214
jobs:
1315
test-coverage:
@@ -40,12 +42,12 @@ jobs:
4042

4143
- uses: codecov/codecov-action@v5
4244
with:
43-
# Fail if error if not on PR, or if on PR and token is given
45+
# Fail if error if not on PR, or if on PR and token is given--dependabot is treated like fork
4446
fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }}
4547
files: ./cobertura.xml
4648
plugins: noop
4749
disable_search: true
48-
token: ${{ secrets.CODECOV_TOKEN }}
50+
use_oidc: true
4951

5052
- name: Show testthat output
5153
if: always()
@@ -56,7 +58,7 @@ jobs:
5658

5759
- name: Upload test results
5860
if: failure()
59-
uses: actions/upload-artifact@v6
61+
uses: actions/upload-artifact@v7
6062
with:
6163
name: coverage-test-failures
6264
path: ${{ runner.temp }}/package

0 commit comments

Comments
 (0)