Skip to content

Commit

Permalink
Set read-only tokens for all workflows (#2075)
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Kaj Kjellerup Nacht <[email protected]>
  • Loading branch information
pnacht authored Sep 14, 2023
1 parent 5cdae3b commit 0cff8e2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
pull_request:
release:
types: [created]

permissions:
contents: read

jobs:
test:
name: Test the code with tf.keras
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on: # rebuild any PRs and main branch changes
- '.devcontainer/**'
- 'workflows/**'

permissions:
contents: read

jobs:
build:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Release
on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy-with-custom-ops:
# This job is currently skipped until we cut a release with custom ops.
Expand Down

0 comments on commit 0cff8e2

Please sign in to comment.