Skip to content

Commit

Permalink
ci: Add read-all permissions to GitHub workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Turner <christopher.g.turner@intel.com>
  • Loading branch information
cgturner1 committed Mar 6, 2024
1 parent 1cb5fd6 commit 5dd7bf0
Show file tree
Hide file tree
Showing 25 changed files with 51 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/assigner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
- main
- v*-branch

permisions: read-all

jobs:
assignment:
name: Pull Request Assignment
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
branches:
- main

permissions: read-all

jobs:
backport:
runs-on: ubuntu-20.04
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/backport_issue_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- v*-branch

permissions: read-all

jobs:
backport:
name: Backport Issue Check
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/bluetooth-tests-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
workflows: ["Bluetooth Tests"]
types:
- completed

permissions: read-all

jobs:
bluetooth-test-results:
name: "Publish Bluetooth Test Results"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/bluetooth-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
- "soc/posix/**"
- "arch/posix/**"

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/bug_snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
# Run daily at 14:05
- cron: '5 14 * * *'

permissions: read-all

jobs:
make_bugs_pickle:
name: Make bugs pickle
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
schedule:
- cron: '25 */3 * * 1-5'

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/coding_guidelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Coding Guidelines

on: pull_request

permissions: read-all

jobs:
compliance_job:
runs-on: ubuntu-20.04
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Compliance Checks

on: pull_request

permissions: read-all

jobs:
check_compliance:
runs-on: ubuntu-20.04
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/daily_test_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
branches:
- refs/tags/*

permissions: read-all

jobs:
get_version:
runs-on: ubuntu-20.04
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/devicetree_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
- 'scripts/dts/**'
- '.github/workflows/devicetree_checks.yml'

permissions: read-all

jobs:
devicetree-checks:
name: Devicetree script tests
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/do_not_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
types: [synchronize, opened, reopened, labeled, unlabeled]

permissions: read-all

jobs:
do-not-merge:
if: ${{ contains(github.event.*.labels.*.name, 'DNM') }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ on:
- 'scripts/dts/**'
- 'scripts/requirements-doc.txt'

permissions: read-all

env:
# NOTE: west docstrings will be extracted from the version listed here
WEST_VERSION: 0.14.0
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/doc-publish-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
types:
- completed

permissions: read-all

jobs:
doc-publish:
name: Publish Documentation
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/doc-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
types:
- completed

permissions: read-all

jobs:
doc-publish:
name: Publish Documentation
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/errno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- 'lib/libc/minimal/include/errno.h'
- 'scripts/ci/errno.py'

permissions: read-all

jobs:
check-errno:
runs-on: ubuntu-20.04
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/footprint-tracking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
# same commit
- 'v*'

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/footprint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Footprint Delta

on: pull_request

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/issue_count.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
schedule:
- cron: '*/10 * * * *'

permissions: read-all

env:
OUTPUT_FILE_NAME: IssuesReport.md
COMMITTER_EMAIL: actions@github.com
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/license_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Scancode

on: [pull_request]

permissions: read-all

jobs:
scancode_job:
runs-on: ubuntu-20.04
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- 'v*'
- '!v*rc*'

permissions: read-all

jobs:
release:
runs-on: ubuntu-20.04
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/stale-workflow-queue-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
# everyday at 15:00
- cron: '0 15 * * *'

permissions: read-all

concurrency:
group: stale-workflow-queue-cleanup
cancel-in-progress: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/stale_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
schedule:
- cron: "16 00 * * *"

permissions: read-all

jobs:
stale:
name: Find Stale issues and PRs
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/twister_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ on:
- 'scripts/tests/twister/**'
- '.github/workflows/twister_tests.yml'

permissions: read-all

jobs:
twister-tests:
name: Twister Unit Tests
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/west_cmds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
- 'scripts/west_commands/**'
- '.github/workflows/west_cmds.yml'

permissions: read-all

jobs:
west-commnads:
name: West Command Tests
Expand Down

0 comments on commit 5dd7bf0

Please sign in to comment.