forked from wazuh/wazuh-docker
Add explicit permissions to 4.x workflows
This commit is contained in:
@@ -213,6 +213,10 @@ jobs:
|
|||||||
|
|
||||||
notify:
|
notify:
|
||||||
runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
|
runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
needs: [setup, build-and-push]
|
needs: [setup, build-and-push]
|
||||||
# Only run if NOT dev AND all products were selected
|
# Only run if NOT dev AND all products were selected
|
||||||
if: ${{ inputs.dev == false && needs.setup.outputs.ALL_PRODUCTS_SELECTED == 'true' }}
|
if: ${{ inputs.dev == false && needs.setup.outputs.ALL_PRODUCTS_SELECTED == 'true' }}
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ on:
|
|||||||
- 'wazuh-agent/**'
|
- 'wazuh-agent/**'
|
||||||
- '.github/**'
|
- '.github/**'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
env:
|
env:
|
||||||
ARTIFACTS_LOCAL_DIR: /home/runner/work/wazuh-docker/wazuh-docker/docker-images
|
ARTIFACTS_LOCAL_DIR: /home/runner/work/wazuh-docker/wazuh-docker/docker-images
|
||||||
ARTIFACT_NAMES: |
|
ARTIFACT_NAMES: |
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
| Issue | Comment |
|
| Issue | Comment |
|
||||||
| - | - |
|
| - | - |
|
||||||
|
- Added explicit `permissions` blocks to the 4.x workflows to restrict the `GITHUB_TOKEN` scope ([#2461](https://github.com/wazuh/wazuh-docker/issues/2461))
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
| Issue | Comment |
|
| Issue | Comment |
|
||||||
|
|||||||
Reference in New Issue
Block a user