mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Harden GitHub Workflows security
Co-authored-by: Michael Voříšek <mvorisek@mvorisek.cz> Closes GH-9440.
This commit is contained in:
committed by
Christoph M. Becker
parent
a1b23be6bf
commit
1d45ca58c8
6
.github/workflows/close-needs-feedback.yml
vendored
6
.github/workflows/close-needs-feedback.yml
vendored
@@ -4,10 +4,16 @@ on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: github.repository_owner == 'php'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Close old issues that need feedback
|
||||
uses: dwieeb/needs-reply@v2
|
||||
|
||||
@@ -4,10 +4,16 @@ on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
if: github.repository_owner == 'php'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/stale@v4
|
||||
with:
|
||||
|
||||
6
.github/workflows/close-stale-prs.yml
vendored
6
.github/workflows/close-stale-prs.yml
vendored
@@ -4,10 +4,16 @@ on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
if: github.repository_owner == 'php'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/stale@v4
|
||||
with:
|
||||
|
||||
2
.github/workflows/nightly.yml
vendored
2
.github/workflows/nightly.yml
vendored
@@ -3,6 +3,8 @@ on:
|
||||
schedule:
|
||||
- cron: "0 1 * * *"
|
||||
workflow_dispatch: ~
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
GENERATE_MATRIX:
|
||||
name: Generate Matrix
|
||||
|
||||
2
.github/workflows/push.yml
vendored
2
.github/workflows/push.yml
vendored
@@ -17,6 +17,8 @@ on:
|
||||
pull_request:
|
||||
branches:
|
||||
- '**'
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
LINUX_X64:
|
||||
strategy:
|
||||
|
||||
6
.github/workflows/remove-needs-feedback.yml
vendored
6
.github/workflows/remove-needs-feedback.yml
vendored
@@ -5,10 +5,16 @@ on:
|
||||
types:
|
||||
- created
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: "github.repository_owner == 'php' && contains(github.event.issue.labels.*.name, 'Status: Needs Feedback') && github.event.issue.user.login == github.event.sender.login"
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions-ecosystem/action-remove-labels@v1
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user