Skip to content

Commit

Permalink
security: add permissions block to workflows (#38047)
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek authored Mar 27, 2024
1 parent 2913ab9 commit f502623
Show file tree
Hide file tree
Showing 32 changed files with 96 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/check-auditbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'auditbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-dev-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'dev-tools'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'filebeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'heartbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-libbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'libbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'metricbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'packetbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-winlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'winlogbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-xpack-auditbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'x-pack/auditbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-xpack-dockerlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'x-pack/dockerlogbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-xpack-filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'x-pack/filebeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-xpack-functionbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'x-pack/functionbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-xpack-heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'x-pack/heartbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-xpack-libbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'x-pack/libbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-xpack-metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'x-pack/metricbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-xpack-osquerybeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'x-pack/osquerybeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-xpack-packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'x-pack/packetbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-xpack-winlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
env:
BEAT_MODULE: 'x-pack/winlogbeat'

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos-auditbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
env:
BEAT_MODULE: 'auditbeat'

permissions:
contents: read

jobs:
macos:
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos-filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
env:
BEAT_MODULE: 'filebeat'

permissions:
contents: read

jobs:
macos:
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos-heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
env:
BEAT_MODULE: 'heartbeat'

permissions:
contents: read

jobs:
macos:
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos-metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
env:
BEAT_MODULE: 'metricbeat'

permissions:
contents: read

jobs:
macos:
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos-packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
env:
BEAT_MODULE: 'packetbeat'

permissions:
contents: read

jobs:
macos:
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos-xpack-auditbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
env:
BEAT_MODULE: 'x-pack/auditbeat'

permissions:
contents: read

jobs:
macos:
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos-xpack-filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
env:
BEAT_MODULE: 'x-pack/filebeat'

permissions:
contents: read

jobs:
macos:
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos-xpack-functionbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
env:
BEAT_MODULE: 'x-pack/functionbeat'

permissions:
contents: read

jobs:
macos:
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos-xpack-heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
env:
BEAT_MODULE: 'x-pack/heartbeat'

permissions:
contents: read

jobs:
macos:
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos-xpack-metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
env:
BEAT_MODULE: 'x-pack/metricbeat'

permissions:
contents: read

jobs:
macos:
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos-xpack-osquerybeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
env:
BEAT_MODULE: 'x-pack/osquerybeat'

permissions:
contents: read

jobs:
macos:
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos-xpack-packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
env:
BEAT_MODULE: 'x-pack/packetbeat'

permissions:
contents: read

jobs:
macos:
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/platform-ingest-project-board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ env:
AREA_FIELD_ID: 'PVTSSF_lADOAGc3Zs4AEzn4zgEgZSo'
ELASTIC_AGENT_OPTION_ID: 'c1e1a30a'

permissions:
contents: read

jobs:
add_to_ingest_project:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/post-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
branches:
- 'dependabot/go_modules/**'

permissions:
contents: read

jobs:
update-notice:
permissions:
Expand Down

0 comments on commit f502623

Please sign in to comment.