Skip to content

Commit 081b8b8

Browse files
authored
Merge pull request #121 from clhainf5/add_workflow_permissions
add permissions to workflows
2 parents 7e25834 + 6863d09 commit 081b8b8

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.github/workflows/build-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ name: Pages-CI
1111
jobs:
1212
validate:
1313
name: Validate HTML
14+
permissions:
15+
contents: read
1416
strategy:
1517
fail-fast: false
1618
runs-on: ubuntu-latest

.github/workflows/check-branch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
jobs:
99
check-branch:
10+
permissions:
11+
contents: read
1012
runs-on: ubuntu-latest
1113
steps:
1214
- name: Check branch

.github/workflows/push-image.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- 'v[0-9]+.[0-9]+.[0-9]+'
77
jobs:
88
Pull-From_Gitlab:
9+
permissions:
10+
contents: read
11+
packages: write
912
runs-on: ubuntu-latest
1013
steps:
1114
- name: "Checkout source code"

0 commit comments

Comments
 (0)