mirror of
https://github.com/open-metadata/OpenMetadata
synced 2026-05-24 09:39:11 +00:00
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:
parent
ef6c9cdfc0
commit
d03373c5e2
4 changed files with 39 additions and 3 deletions
36
.github/workflows/stale.yml
vendored
Normal file
36
.github/workflows/stale.yml
vendored
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue