Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,18 @@ updates:
open-pull-requests-limit: 0

# Maintain dependencies for Composer
ignore:
- dependency-name: "yiisoft/*"
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: increase-if-necessary
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
cooldown:
default-days: 7
ignore:
- dependency-name: "yiisoft/*"
3 changes: 0 additions & 3 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on:

Check failure on line 1 in .github/workflows/rector.yml

View workflow job for this annotation

GitHub Actions / Run zizmor 🌈

dangerous-triggers

rector.yml:1: use of fundamentally insecure workflow trigger: pull_request_target is almost always used insecurely

Check warning on line 1 in .github/workflows/rector.yml

View workflow job for this annotation

GitHub Actions / Run zizmor 🌈

excessive-permissions

rector.yml:1: overly broad permissions: default permissions used due to no permissions: block
pull_request_target:
paths-ignore:
- 'docs/**'
Expand All @@ -12,12 +12,9 @@
name: rector

jobs:
rector:

Check warning on line 15 in .github/workflows/rector.yml

View workflow job for this annotation

GitHub Actions / Run zizmor 🌈

excessive-permissions

rector.yml:15: overly broad permissions: default permissions used due to no permissions: block
uses: yiisoft/actions/.github/workflows/rector.yml@master
secrets:
token: ${{ secrets.YIISOFT_GITHUB_TOKEN }}
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
os: >-
['ubuntu-latest']
php: >-
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: GitHub Actions Security Analysis with zizmor 🌈

on:
push:
branches:
- main
paths:
- '.github/**.yml'
- '.github/**.yaml'
pull_request:
paths:
- '.github/**.yml'
- '.github/**.yaml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
zizmor:
name: Run zizmor 🌈
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Run zizmor 🌈
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
with:
advanced-security: false
annotations: true
persona: 'pedantic'
5 changes: 5 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rules:
unpinned-uses:
config:
policies:
"yiisoft/*": any
Loading