Skip to content

Commit 30e8223

Browse files
committed
Added permissions for Trusted Publishing
1 parent d5c3f21 commit 30e8223

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/pr-preview.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
jobs:
77
preview:
88
runs-on: ubuntu-latest
9+
permissions:
10+
id-token: write
11+
contents: read
912
steps:
1013
- uses: actions/checkout@v4
1114
with:
@@ -37,7 +40,7 @@ jobs:
3740
run: |
3841
if curl -s -f https://test.pypi.org/pypi/socketsecurity/$VERSION/json > /dev/null; then
3942
echo "Version ${VERSION} already exists on Test PyPI"
40-
echo "exists=true" >> $GITHUB_OUTPUT
43+
echo "exists=true" >> $GITHUB_`OUTPUT
4144
else
4245
echo "Version ${VERSION} not found on Test PyPI"
4346
echo "exists=false" >> $GITHUB_OUTPUT

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
jobs:
77
release:
88
runs-on: ubuntu-latest
9+
permissions:
10+
id-token: write
11+
contents: read
912
steps:
1013
- uses: actions/checkout@v4
1114
with:

socketsecurity/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__author__ = 'socket.dev'
2-
__version__ = '2.0.20'
2+
__version__ = '2.0.21'

0 commit comments

Comments
 (0)