Skip to content

Commit 7eebcd6

Browse files
authored
update setup-just, move codecov to oidc and scorecard token to a prot… (#164)
* update setup-just, move codecov to oidc and scorecard token to a protected env * fix oidc perms
1 parent f5c928c commit 7eebcd6

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ jobs:
2525
permissions:
2626
contents: read
2727
actions: write
28+
id-token: write
2829
uses: ./.github/workflows/test.yml
29-
secrets:
30-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3130

3231
build:
3332
name: Build Package

.github/workflows/scorecard.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
analysis:
1616
name: Scorecard analysis
1717
runs-on: ubuntu-latest
18+
environment:
19+
name: scorecard
20+
deployment: false # Prevents creating a GitHub deployment object
21+
1822
permissions:
1923
security-events: write
2024
id-token: write

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ on:
1010
pull_request:
1111
merge_group:
1212
workflow_call:
13-
secrets:
14-
CODECOV_TOKEN:
15-
required: true
1613
workflow_dispatch:
1714
inputs:
1815
debug:
@@ -192,6 +189,9 @@ jobs:
192189
coverage-combine:
193190
needs: [linux, macos, windows]
194191
runs-on: ubuntu-latest
192+
permissions:
193+
contents: read
194+
id-token: write
195195

196196
steps:
197197
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
@@ -225,5 +225,6 @@ jobs:
225225
- name: Upload coverage to Codecov
226226
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2
227227
with:
228-
token: ${{ secrets.CODECOV_TOKEN }}
229-
file: ./coverage.xml
228+
use_oidc: true
229+
files:
230+
./coverage.xml

0 commit comments

Comments
 (0)