mirror of
https://github.com/docker/compose.git
synced 2025-09-02 07:28:13 +02:00
make the OpenSSF scorecard slightly happier; https://securityscorecards.dev/viewer/?uri=github.com/docker/compose Warn: jobLevel 'contents' permission set to 'write': .github/workflows/ci.yml:256: update your workflow using https://app.stepsecurity.io/secureworkflow/docker/compose/ci.yml/main?enable=permissions Warn: no topLevel permission defined: .github/workflows/docs-upstream.yml:1: update your workflow using https://app.stepsecurity.io/secureworkflow/docker/compose/docs-upstream.yml/main?enable=permissions Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: 'Close stale issues'
|
|
|
|
# Default to 'contents: read', which grants actions to read commits.
|
|
#
|
|
# If any permission is set, any permission not included in the list is
|
|
# implicitly set to "none".
|
|
#
|
|
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * 0,3' # at midnight UTC every Sunday and Wednesday
|
|
jobs:
|
|
stale:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
steps:
|
|
- uses: actions/stale@v9
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
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.
|
|
days-before-issue-stale: 150 # marks stale after 5 months
|
|
days-before-issue-close: 30 # closes 1 month after being marked with no action
|
|
stale-issue-label: "stale"
|
|
exempt-issue-labels: "kind/feature,kind/enhancement"
|
|
|