mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
ci: improve security of all workflows
This commit is contained in:
parent
d9f2ab6468
commit
ac9ebeb09b
3 changed files with 32 additions and 18 deletions
7
.github/workflows/lock-threads.yaml
vendored
7
.github/workflows/lock-threads.yaml
vendored
|
|
@ -2,7 +2,12 @@ name: Lock inactive threads
|
|||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 1 * * *'
|
||||
- cron: "0 1 * * *"
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
discussions: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
lock-threads:
|
||||
|
|
|
|||
20
.github/workflows/stale-threads.yaml
vendored
20
.github/workflows/stale-threads.yaml
vendored
|
|
@ -2,29 +2,33 @@ name: Manage stale threads
|
|||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 2 * * *'
|
||||
- cron: "0 2 * * *"
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
stale-threads:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Manage stale threads (Issues & PRs)
|
||||
uses: actions/stale@v9
|
||||
uses: actions/stale@v10
|
||||
with:
|
||||
stale-issue-message: |
|
||||
This issue has been marked as stale due to inactivity. It will be automatically closed in 7 days if no update is received.
|
||||
|
||||
|
||||
Please provide the requested information to keep the issue active.
|
||||
stale-pr-message: |
|
||||
This pull request has been marked as stale due to inactivity. It will be automatically closed in 7 days if no update is received.
|
||||
|
||||
|
||||
To keep this PR active:
|
||||
- Update your changes based on the requested feedback
|
||||
- Leave a comment with your progress or questions
|
||||
days-before-stale: 14
|
||||
stale-issue-label: '⏱︎ Stale'
|
||||
stale-pr-label: '⏱︎ Stale'
|
||||
only-labels: '💤 Waiting for feedback, 💤 Waiting for changes'
|
||||
stale-issue-label: "⏱︎ Stale"
|
||||
stale-pr-label: "⏱︎ Stale"
|
||||
only-labels: "💤 Waiting for feedback, 💤 Waiting for changes"
|
||||
remove-stale-when-updated: true
|
||||
operations-per-run: 100
|
||||
labels-to-remove-when-unstale: '⏱︎ Stale, 💤 Waiting for feedback, 💤 Waiting for changes'
|
||||
labels-to-remove-when-unstale: "⏱︎ Stale, 💤 Waiting for feedback, 💤 Waiting for changes"
|
||||
|
|
|
|||
23
.github/workflows/tests.yaml
vendored
23
.github/workflows/tests.yaml
vendored
|
|
@ -3,7 +3,10 @@ name: Tests
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**v5.x**'
|
||||
- "**v5.x**"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
composer-validate:
|
||||
|
|
@ -11,13 +14,15 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.4'
|
||||
|
||||
php-version: "8.4"
|
||||
|
||||
- name: Validate composer.json
|
||||
run: composer validate --check-lock --strict
|
||||
|
||||
|
|
@ -32,7 +37,7 @@ jobs:
|
|||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.4'
|
||||
php-version: "8.4"
|
||||
|
||||
- name: Cache Composer packages
|
||||
id: composer-cache
|
||||
|
|
@ -55,7 +60,7 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
|
|
@ -74,12 +79,12 @@ jobs:
|
|||
- name: Setup PHP with Xdebug
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.4'
|
||||
php-version: "8.4"
|
||||
coverage: xdebug
|
||||
|
||||
# - name: Install aspell
|
||||
# run: sudo apt-get update && sudo apt-get install -y aspell aspell-en
|
||||
|
||||
|
||||
- name: Cache Composer packages
|
||||
id: composer-cache
|
||||
uses: actions/cache@v4
|
||||
|
|
|
|||
Loading…
Reference in a new issue