Skip to content

Commit

Permalink
Merge pull request #2909 from sashashura/patch-3
Browse files Browse the repository at this point in the history
GitHub Workflows security hardening
  • Loading branch information
kitsunet committed Feb 13, 2023
2 parents d1e7d99 + 9ae7128 commit 63ff77e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ on:
pull_request:
branches: [ master, '[0-9]+.[0-9]' ]

permissions: {}
jobs:
build:
permissions:
contents: read # to fetch code (actions/checkout)

if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip travis]')"
name: "PHP ${{ matrix.php-versions }} Test ${{ matrix.static-analysis != 'no' && matrix.static-analysis || '' }} (deps: ${{ matrix.dependencies }})"

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
schedule:
- cron: '0 0 * * *' # Runs every day at midnight

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

jobs:
build:
name: "Experimental PHP ${{ matrix.php-versions }} Test ${{ matrix.static-analysis != 'no' && matrix.static-analysis || '' }} (deps: ${{ matrix.dependencies }})"
Expand Down

0 comments on commit 63ff77e

Please sign in to comment.