Skip to content

Commit

Permalink
Merge pull request #11038 from sashashura/patch-3
Browse files Browse the repository at this point in the history
GitHub Workflows security hardening
  • Loading branch information
daschuer authored Nov 4, 2022
2 parents 76fbfb2 + a1b2d38 commit db0c467
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ on:
push:
pull_request:

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

jobs:
build-checks:
permissions:
contents: read # to fetch code (actions/checkout)
checks: write # to create new checks (coverallsapp/github-action)

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

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

jobs:
build:
strategy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
paths:
- "CHANGELOG.md"

permissions: {}
jobs:
trigger-changelog-update:
name: Trigger Changelog update on manual repository
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
push:
pull_request:

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

jobs:
pre-commit:
name: Detecting code style issues
Expand Down

0 comments on commit db0c467

Please sign in to comment.