Skip to content

Commit

Permalink
ci: add minimum GitHub token permissions for workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Kurmi <[email protected]>
  • Loading branch information
ashishkurmi committed Sep 9, 2022
1 parent 2778796 commit d7f7a74
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_docker_image_wheelbuilder_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- 'scripts/docker_files/docker_file_wheelbuilder_linux/*'
- '.github/workflows/build_docker_image_wheelbuilder_linux.yml'

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build_docker_image_wheelbuilder_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- 'scripts/docker_files/docker_file_wheelbuilder_windows/*'
- '.github/workflows/build_docker_image_wheelbuilder_windows.yml'

permissions:
contents: read

jobs:
build:
runs-on: windows-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build_docker_images_with_kratos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
schedule:
- cron: '0 0 * * *' # update it every night

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-dummy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
- 'documents/**'
- 'scripts/**'

permissions:
contents: read

jobs:
ubuntu:
runs-on: ubuntu-latest
Expand Down

0 comments on commit d7f7a74

Please sign in to comment.