Skip to content

Commit

Permalink
Limit workflow permissions (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc authored Jan 11, 2024
1 parent ea8ac2e commit 89b756d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/buildifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
bazel-formatting-check:
uses: secretflow/.github/.github/workflows/bazel-linter.yml@main
2 changes: 2 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
types: [created]
pull_request_target:
types: [opened, closed, synchronize]
permissions:
contents: write
jobs:
CLAssistant:
uses: secretflow/.github/.github/workflows/cla.yml@main
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/clang-format-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
run-clang-format:
uses: secretflow/.github/.github/workflows/clang-format.yml@main
3 changes: 3 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
workflow_dispatch:
schedule:
- cron: 40 9 * * *
permissions:
pull-requests: write
issues: write
jobs:
stale:
uses: secretflow/.github/.github/workflows/stale.yml@main
2 changes: 2 additions & 0 deletions .github/workflows/yaml-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
yaml-linter:
uses: secretflow/.github/.github/workflows/yaml-linter.yml@main

0 comments on commit 89b756d

Please sign in to comment.