Skip to content

Commit

Permalink
Set default wf permission to read-all (#2882)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunchu authored Feb 6, 2024
1 parent 7d46157 commit 7c3617e
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/code_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
# every UTC 6PM from Mon to Fri
- cron: "0 18 * * 1-5"

# Declare default permissions as read only.
permissions: read-all

jobs:
Trivy-scan:
runs-on: ubuntu-20.04
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
# every UTC 7PM from Mon to Fri
- cron: "0 19 * * 1-5"

# Declare default permissions as read only.
permissions: read-all

jobs:
E2E-tests:
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pre_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
- synchronize
workflow_dispatch: # run on request (no need for PR)

# Declare default permissions as read only.
permissions: read-all

jobs:
Code-Quality-Checks:
# This is what will cancel the job concurrency
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
release:
types: [published]

# Declare default permissions as read only.
permissions: read-all

jobs:
build_wheels:
name: Build wheels
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish_internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Build and upload to internal PyPI
on:
workflow_dispatch: # run on request (no need for PR)

# Declare default permissions as read only.
permissions: read-all

jobs:
build_wheels:
name: Build wheels
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/run_tests_in_tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ on:
toxenv-ptver:
type: string
default: "pt1"

# Declare default permissions as read only.
permissions: read-all

jobs:
run_tests_in_tox:
# tricky workaround to pass list from the string input type
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/stale_marker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
schedule:
- cron: "30 1 * * *"

# Declare default permissions as read only.
permissions: read-all

jobs:
stale:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
# every 12AM on Sunday
- cron: "0 0 * * 0"

# Declare default permissions as read only.
permissions: read-all

jobs:
Regression-Tests:
strategy:
Expand Down

0 comments on commit 7c3617e

Please sign in to comment.