mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-25 23:07:07 +03:00
easimon/maximize-build-space ran from a branch, and the lowercase and manifest actions ran from mutable tags, inside jobs that push images and mint build attestations. The release workflow also ran skopeo from its latest tag with the push credential mounted. The actions are now pinned to commit SHAs with version comments so Dependabot still bumps them, the lowercase action is replaced with ${GITHUB_REPOSITORY,,}, and skopeo is pinned by digest. ci.yml, release.yml, pull_request.yml and stale.yml now declare explicit token permissions instead of relying on the repository default.
48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
# Close Stale Issues
|
|
# Warns and then closes issues and PRs that have had no activity for a specified amount of time.
|
|
# https://github.com/actions/stale
|
|
|
|
name: "Stalebot"
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * *" # run stalebot once a day
|
|
|
|
permissions:
|
|
actions: write
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
stale:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
|
|
id: stale
|
|
with:
|
|
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
|
|
close-issue-message: ""
|
|
days-before-stale: 30
|
|
days-before-close: 3
|
|
exempt-draft-pr: false
|
|
exempt-issue-labels: "planned,security"
|
|
exempt-pr-labels: "planned,security,dependencies"
|
|
operations-per-run: 120
|
|
- name: Print outputs
|
|
env:
|
|
STALE_OUTPUT: ${{ join(steps.stale.outputs.*, ',') }}
|
|
run: echo "$STALE_OUTPUT"
|
|
|
|
# clean_ghcr:
|
|
# name: Delete outdated dev container images
|
|
# runs-on: ubuntu-latest
|
|
# steps:
|
|
# - name: Delete old images
|
|
# uses: snok/container-retention-policy@v2
|
|
# with:
|
|
# image-names: dev-*
|
|
# cut-off: 60 days ago UTC
|
|
# keep-at-least: 5
|
|
# account-type: personal
|
|
# token: ${{ secrets.GITHUB_TOKEN }}
|
|
# token-type: github-token
|