Skip to content

Commit 662afdb

Browse files
Add permissions and timeout for workflow
1 parent ba7e269 commit 662afdb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/deploy-github-pages.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,22 @@ on:
77
- main # <-- specify the branch you want to deploy from
88
pull_request:
99

10+
permissions: read-all
11+
1012
env:
1113
REPO_NAME: ${{ github.event.repository.name }}
1214
REPO_OWNER: ${{ github.repository_owner }}
1315

1416
jobs:
1517
deploy:
1618
runs-on: ubuntu-22.04
19+
timeout: 60
20+
permissions:
21+
contents: write
22+
pull-requests: write
1723
concurrency:
1824
group: ${{ github.workflow }}-${{ github.ref }}
25+
1926
steps:
2027
- uses: actions/checkout@v4
2128
with:

0 commit comments

Comments
 (0)