Stale pr workflow (#26667)

* stale pr automation

* chore: auto close stale pr

* chore: auto close stale pr

* Update .github/workflows/stale.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update .github/workflows/stale.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update .github/workflows/stale.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update .github/workflows/stale.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Teddy 2026-03-20 14:18:33 -07:00 committed by GitHub
parent ef6c9cdfc0
commit d03373c5e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 3 deletions

36
.github/workflows/stale.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Close Stale PRs
on:
schedule:
- cron: '0 9 * * *' # Runs daily at 9AM UTC
workflow_dispatch:
permissions:
pull-requests: write
issues: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# PRs only (disable for issues)
stale-issue-message: ''
close-issue-message: ''
days-before-issue-stale: -1
days-before-issue-close: -1
# PR settings
days-before-pr-stale: 30 # Mark stale after 30 days
days-before-pr-close: 7 # Close 7 days after marking
stale-pr-message: |
This PR has had no activity for 30 days and will be closed in 7 days if no further activity occurs.
Feel free to reopen it if you'd like to continue working on it.
close-pr-message: |
Closing due to inactivity. Reopen anytime to continue.
exempt-pr-labels: 'wip'
exempt-draft-pr: true
operations-per-run: 50

View file

@ -68,7 +68,7 @@ jobs:
- name: Run Trivy Image Scan
id: trivy_scan
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.35.0
with:
scan-type: "image"
image-ref: openmetadata-ingestion-base-slim:trivy

View file

@ -68,7 +68,7 @@ jobs:
- name: Run Trivy Image Scan
id: trivy_scan
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.35.0
with:
scan-type: "image"
image-ref: openmetadata-ingestion:trivy

View file

@ -34,7 +34,7 @@ jobs:
run: |
docker build -t openmetadata-server:trivy -f docker/development/Dockerfile .
- name: Run Trivy Image Scan
uses: aquasecurity/trivy-action@0.28.0
uses: aquasecurity/trivy-action@0.35.0
with:
scan-type: "image"
image-ref: openmetadata-server:trivy