Skip to content

Commit 24f7c04

Browse files
[StepSecurity] ci: Harden GitHub Actions (#619)
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
1 parent f751374 commit 24f7c04

5 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/deploy-javadoc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
deploy-javadoc:
1114
runs-on: ubuntu-latest

.github/workflows/deploy-snapshots.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
deploy-snapshots:
1114
runs-on: ubuntu-latest

.github/workflows/release-drafter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
update_release_draft:
1114
permissions:

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Release
33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
deploy-release:
811
runs-on: ubuntu-latest

.github/workflows/updatecli.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- cron: '0 2 * * 1' # Every Monday at 2am UTC
66
push:
77
pull_request:
8+
permissions:
9+
contents: read
10+
811
jobs:
912
updatecli:
1013
permissions:

0 commit comments

Comments
 (0)