Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 85cb4b6

Browse files
committedJul 7, 2023
ci: restrict permissions of the github actions
1 parent 6b97e00 commit 85cb4b6

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
 

‎.github/workflows/generate-go-app.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Generate Golang app
33
on:
44
push:
55

6+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
7+
permissions:
8+
# NOTE: actions/upload-artifact makes no use of permissions
9+
# See https://github.com/actions/upload-artifact/issues/197#issuecomment-832279436
10+
contents: read # for "git clone"
11+
612
jobs:
713
generate-app:
814
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on

‎.github/workflows/generate-js-app.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Generate JavaScript app
33
on:
44
push:
55

6+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
7+
permissions:
8+
# NOTE: actions/upload-artifact makes no use of permissions
9+
# See https://github.com/actions/upload-artifact/issues/197#issuecomment-832279436
10+
contents: read # for "git clone"
11+
612
jobs:
713
generate-app:
814
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on

‎.github/workflows/generate-python-app.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: Generate Python app
33
on:
44
push:
55

6+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
7+
permissions:
8+
# NOTE: actions/upload-artifact makes no use of permissions
9+
# See https://github.com/actions/upload-artifact/issues/197#issuecomment-832279436
10+
contents: read # for "git clone"
11+
612
jobs:
713
generate-app:
814
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on

0 commit comments

Comments
 (0)
Please sign in to comment.