Skip to content

Commit

Permalink
set token permissions for workflows (#1436)
Browse files Browse the repository at this point in the history
* token permisstions for workflows
  • Loading branch information
akihikokuroda authored Aug 5, 2024
1 parent aefa3f6 commit e41a1b1
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-containers-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Build the containers
on:
pull_request:

permissions:
contents: read

defaults:
run:
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/client-pypi-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
release:
types: [published]

permissions:
contents: read

jobs:
release-package:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/client-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Client verify process
on:
pull_request:

permissions:
contents: read

jobs:
verify-client:
name: lint, test
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docs-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Verify building sphinx docs
on:
pull_request:

permissions:
contents: read

jobs:
verify_docs_build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/gateway-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Gateway verify process
on:
pull_request:

permissions:
contents: read

jobs:
verify-gateway:
name: lint, test, coverage
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/helm-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- ".github/actions/helm-lint/action.yaml"
- ".github/workflows/helm-verify.yaml"

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/icr-image-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
release:
types: [published]

permissions:
contents: read

jobs:
icr_build_and_push:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/kubernetes-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
tests:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/notebook-local-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
tests:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/proxy-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Proxy verify process
on:
pull_request:

permissions:
contents: read

jobs:
verify-proxy:
name: lint, test
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ on:
branches:
- main

permissions:
contents: read

jobs:
build_and_deploy_docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [published]

permissions:
contents: read

jobs:
package:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
update_release_draft:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-component-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
description: 'version to update to ("x.y.z" -- do not include a `v` prefix)'
required: true

permissions:
contents: read

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

0 comments on commit e41a1b1

Please sign in to comment.