Skip to content

Commit

Permalink
[github-actions] set top-level permissions to read (#8518)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhui authored Dec 13, 2022
1 parent c5ee313 commit b02bdb9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && github.run_id) || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:

pretty:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/otbr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && github.run_id) || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:

backbone-router:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && github.run_id) || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:

expects-linux:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/simulation-1.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && github.run_id) || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:

distcheck:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && github.run_id) || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:

size-report:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/toranj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.repository == 'openthread/openthread' && github.run_id) || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:

toranj-ncp:
Expand Down

0 comments on commit b02bdb9

Please sign in to comment.