Skip to content

Commit

Permalink
minor: GitHub Workflows security hardening (#6644)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashashura authored Oct 11, 2022
1 parent a1c7c30 commit c626578
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
- pull_request
- push

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
tests:
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/sca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
- pull_request
- push

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
tests:
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
paths:
- '**.y?ml'

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
validate-yaml:
name: Validate YAML
Expand Down

0 comments on commit c626578

Please sign in to comment.