Skip to content

Commit

Permalink
Update python-package.yml (#750)
Browse files Browse the repository at this point in the history
* Update python-package.yml

Add permissions blocks

* Adding permissions block to publish action
  • Loading branch information
ianhelle committed Feb 3, 2024
1 parent b03e82f commit d859d99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions: read-all
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
Expand Down Expand Up @@ -91,6 +92,7 @@ jobs:

lint:
runs-on: ubuntu-latest
permissions: read-all
strategy:
matrix:
python-version: ["3.8"]
Expand Down Expand Up @@ -183,6 +185,7 @@ jobs:
if: ${{ always() }}
check_status:
runs-on: ubuntu-latest
permissions: read-all
needs: [build, lint]
steps:
- name: File build fail issue
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
deploy:

runs-on: ubuntu-latest

permissions: read-all
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand Down

0 comments on commit d859d99

Please sign in to comment.