diff --git a/.github/workflows/compile_macos.yml b/.github/workflows/compile_macos.yml index 075ae2dfddc..08327876cbe 100644 --- a/.github/workflows/compile_macos.yml +++ b/.github/workflows/compile_macos.yml @@ -22,6 +22,9 @@ on: - cron: '0 6 * * 1' # Every Monday at 06:00 UTC workflow_dispatch: +permissions: + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/compile_ubuntu.yml b/.github/workflows/compile_ubuntu.yml index e7e9c45f31e..6423828c76a 100644 --- a/.github/workflows/compile_ubuntu.yml +++ b/.github/workflows/compile_ubuntu.yml @@ -12,6 +12,9 @@ on: paths-ignore: - 'docs/**' +permissions: + contents: read + env: RUNS_IN_DOCKER: true diff --git a/.github/workflows/dev_call_post.yml b/.github/workflows/dev_call_post.yml index ed45f30e70d..5eca0a0d0e4 100644 --- a/.github/workflows/dev_call_post.yml +++ b/.github/workflows/dev_call_post.yml @@ -17,6 +17,9 @@ on: type: string default: '7' +permissions: + contents: read + jobs: post-dev-call: runs-on: ubuntu-latest diff --git a/.github/workflows/dev_container.yml b/.github/workflows/dev_container.yml index f99e3a1af52..5d86eb88f48 100644 --- a/.github/workflows/dev_container.yml +++ b/.github/workflows/dev_container.yml @@ -33,6 +33,9 @@ on: type: boolean default: false +permissions: + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/docs-orchestrator.yml b/.github/workflows/docs-orchestrator.yml index 11e9ef2eb78..a5724ee15dc 100644 --- a/.github/workflows/docs-orchestrator.yml +++ b/.github/workflows/docs-orchestrator.yml @@ -28,6 +28,9 @@ on: - ".github/workflows/docs-orchestrator.yml" workflow_dispatch: +permissions: + contents: read + concurrency: group: docs-orchestrator-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/docs_crowdin_upload.yml b/.github/workflows/docs_crowdin_upload.yml index d55f4599234..c49da706273 100644 --- a/.github/workflows/docs_crowdin_upload.yml +++ b/.github/workflows/docs_crowdin_upload.yml @@ -17,6 +17,9 @@ on: # - 'docs/en/**' workflow_dispatch: +permissions: + contents: read + jobs: upload-to-crowdin: #if: github.event.pull_request.merged == true || github.event_name == 'push' || github.event_name == 'workflow_dispatch' diff --git a/.github/workflows/failsafe_sim.yml b/.github/workflows/failsafe_sim.yml index 161d018adbb..6e952e3c54c 100644 --- a/.github/workflows/failsafe_sim.yml +++ b/.github/workflows/failsafe_sim.yml @@ -12,6 +12,9 @@ on: paths-ignore: - 'docs/**' +permissions: + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index a00f8f83a92..97a6db213b0 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -10,6 +10,9 @@ on: pull_request_target: types: [opened, edited, synchronize, reopened, ready_for_review] +permissions: + contents: read + # Runs that overlap would race to add and remove the scope label. concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number }} diff --git a/.github/workflows/python_checks.yml b/.github/workflows/python_checks.yml index 05877897dd7..e62bf3960e8 100644 --- a/.github/workflows/python_checks.yml +++ b/.github/workflows/python_checks.yml @@ -12,6 +12,9 @@ on: paths-ignore: - 'docs/**' +permissions: + contents: read + jobs: build: runs-on: [runs-on,runner=1cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}"] diff --git a/.github/workflows/sitl_tests.yml b/.github/workflows/sitl_tests.yml index 9ee1eff3f5f..12c1e176498 100644 --- a/.github/workflows/sitl_tests.yml +++ b/.github/workflows/sitl_tests.yml @@ -17,6 +17,9 @@ on: paths-ignore: - 'docs/**' +permissions: + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 0630b668911..f41f4255bf1 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -4,6 +4,11 @@ on: - cron: '30 1 * * *' workflow_dispatch: +permissions: + actions: write # actions/stale keeps its state in the Actions cache + issues: write + pull-requests: write + jobs: stale: runs-on: ubuntu-latest