Skip to content

Commit

Permalink
Narrow permissions for actions which don't need read-all
Browse files Browse the repository at this point in the history
FORCE_TEST_ACTIONS

PiperOrigin-RevId: 660584409
  • Loading branch information
ddunl authored and copybara-github committed Aug 7, 2024
1 parent 56d83b8 commit 5daef5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/buildifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# limitations under the License.
# ============================================================================
name: Buildifier
permissions: read-all
permissions:
contents: read
on:
pull_request:

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/check_contents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
# files once XLA moves out of Tensorflow internally.
# TODO(ddunleavy): Update this after METADATA files are consolidated.
name: Check Contents
permissions: read-all
permissions:
contents: read
on:
pull_request:

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/clang_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
# ============================================================================

name: Clang Format
permissions: read-all
permissions:
contents: read
on:
pull_request:

Expand Down

0 comments on commit 5daef5d

Please sign in to comment.