Skip to content

Commit d6c7a3b

Browse files
authored
switch codecov to use oidc (#484)
* switch codecov to use oidc
1 parent 184b679 commit d6c7a3b

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/ci-build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
name: Test SpiceyPy 🌶️ 🥧
5757
needs: build
5858
runs-on: ${{ matrix.os }}
59+
permissions:
60+
id-token: write
61+
contents: read
5962
strategy:
6063
matrix:
6164
os: [ubuntu-latest, macos-14, windows-latest]
@@ -121,8 +124,12 @@ jobs:
121124
with:
122125
fail_ci_if_error: false
123126
verbose: true
127+
use_oidc: true
124128
test_offline_shared:
125129
runs-on: ubuntu-latest
130+
permissions:
131+
id-token: write
132+
contents: read
126133
steps:
127134
- name: Checkout 🌶️ 🥧
128135
uses: actions/checkout@v4
@@ -169,8 +176,12 @@ jobs:
169176
with:
170177
fail_ci_if_error: false
171178
verbose: true
179+
use_oidc: true
172180
test_offline_cspice_install:
173181
runs-on: ubuntu-latest
182+
permissions:
183+
id-token: write
184+
contents: read
174185
steps:
175186
- name: Checkout 🌶️ 🥧
176187
uses: actions/checkout@v4
@@ -216,3 +227,4 @@ jobs:
216227
with:
217228
fail_ci_if_error: false
218229
verbose: true
230+
use_oidc: true

.github/workflows/publish-to-test-and-live-pypi.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2-
2+
33
on:
44
pull_request:
55
push:
@@ -12,6 +12,9 @@ jobs:
1212
build_sdist:
1313
name: Make SpiceyPy 🌶️ 🥧 Python 🐍 source distribution
1414
runs-on: ubuntu-latest
15+
permissions:
16+
id-token: write
17+
contents: read
1518
steps:
1619
- name: Checkout 🌶️ 🥧
1720
uses: actions/checkout@v4
@@ -39,6 +42,7 @@ jobs:
3942
with:
4043
fail_ci_if_error: false
4144
verbose: true
45+
use_oidc: true
4246
- name: Check dists
4347
run: |
4448
twine check dist/*
@@ -130,6 +134,9 @@ jobs:
130134
name: Publish SpiceyPy 🌶️ 🥧 Python 🐍 distributions 📦 to PyPI and TestPyPI
131135
needs: [build_wheels, build_sdist]
132136
runs-on: ubuntu-latest
137+
permissions:
138+
id-token: write
139+
contents: read
133140
steps:
134141
- uses: actions/download-artifact@v4
135142
with:

0 commit comments

Comments
 (0)