diff --git a/.github/workflows/compile_macos.yml b/.github/workflows/compile_macos.yml index 899d21e3a07..1c9ae87beba 100644 --- a/.github/workflows/compile_macos.yml +++ b/.github/workflows/compile_macos.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/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 715ddd3930a..01e24d165f9 100644 --- a/.github/workflows/dev_container.yml +++ b/.github/workflows/dev_container.yml @@ -32,6 +32,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 0cf4682d197..29edcd1f3d5 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 f9341d8ca8c..6e15ef28f26 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -9,6 +9,9 @@ on: pull_request_target: types: [opened, edited, synchronize, reopened, ready_for_review] +permissions: + contents: read + jobs: label: diff --git a/.github/workflows/python_checks.yml b/.github/workflows/python_checks.yml index 481cb161942..b68c27e3e37 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 ce44f3d8792..3812d2f0584 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