Skip to content

Commit 466f3a6

Browse files
authored
Refactor permissions in python-app.yml workflow
Updated permissions for jobs in the workflow.
1 parent 7e610e8 commit 466f3a6

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ name: Python application
66
on:
77
workflow_dispatch:
88

9-
permissions:
10-
contents: read
11-
pages: write
12-
id-token: write
13-
149
jobs:
1510
build:
1611
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
1714
steps:
1815
- uses: actions/checkout@v4
1916
- name: Set up Python 3.10
@@ -33,11 +30,11 @@ jobs:
3330
name: github-pages
3431
path: ./index.html
3532
deploy:
36-
environment:
37-
name: github-pages
38-
url: ${{ steps.deployment.outputs.page_url }}
3933
runs-on: ubuntu-latest
4034
needs: build
35+
permissions:
36+
pages: write
37+
id-token: write
4138
steps:
4239
- name: Deploy to GitHub Pages
4340
id: deployment

0 commit comments

Comments
 (0)