Add explicit permissions to 4.x workflows. Backport to the 5.0.0 branch

This commit is contained in:
jesusph04
2026-08-05 11:41:01 +02:00
parent 6852ecae39
commit 23486c58b6
2 changed files with 7 additions and 0 deletions
@@ -213,6 +213,10 @@ jobs:
notify:
runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
permissions:
contents: read
needs: [setup, build-and-push]
# Only run if NOT dev AND all products were selected
if: ${{ inputs.dev == false && needs.setup.outputs.ALL_PRODUCTS_SELECTED == 'true' }}
+3
View File
@@ -12,6 +12,9 @@ on:
- 'wazuh-agent/**'
- '.github/**'
permissions:
contents: read
env:
ARTIFACTS_LOCAL_DIR: /home/runner/work/wazuh-docker/wazuh-docker/docker-images
ARTIFACT_NAMES: |