Skip to content

Commit 77353e6

Browse files
[StepSecurity] ci: Harden GitHub Actions (#206)
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent f27ee13 commit 77353e6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/validator-docker.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ env:
1212
REGISTRY: ghcr.io
1313
IMAGE_NAME: ${{ github.repository }}
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
push_to_registry:
1720
name: Push Docker image to Docker Hub

.github/workflows/validator-tests.yaml

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

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

0 commit comments

Comments
 (0)