mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
13a194466b
* chore: Set permissions for GitHub actions Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs [Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/) Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com> * Update docs-production-deploy.yml * added `packages: write` permissions this is apparently needed by GH so this repository can push new images. Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Co-authored-by: Casper <casperklein@users.noreply.github.com>
47 lines
1.6 KiB
YAML
47 lines
1.6 KiB
YAML
name: "Handle Stale Issues & Pull Requests"
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 1 * * *"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
stale:
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Close stale issues
|
|
uses: actions/stale@v5
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
days-before-stale: 20
|
|
days-before-close: 10
|
|
|
|
exempt-issue-labels: stale-bot/ignore
|
|
stale-issue-label: meta/stale
|
|
stale-issue-message: |
|
|
This issue has become stale because it has been open for 20 days without activity.
|
|
This issue will be closed in 10 days automatically unless:
|
|
|
|
- a maintainer removes the `meta/stale` label or adds the `stale-bot/ignore` label
|
|
- new activity occurs, such as a new comment
|
|
close-issue-label: "meta/closed due to age or inactivity"
|
|
close-issue-message: >
|
|
This issue was closed due to inactivity.
|
|
|
|
exempt-pr-labels: stale-bot/ignore
|
|
stale-pr-label: meta/stale
|
|
stale-pr-message: |
|
|
This pull request has become stale because it has been open for 20 days without activity.
|
|
This pull request will be closed in 10 days automatically unless:
|
|
|
|
- a maintainer removes the `meta/stale` label or adds the `stale-bot/ignore` label
|
|
- new activity occurs, such as a new comment
|
|
close-pr-label: "meta/closed due to age or inactivity"
|
|
close-pr-message: >
|
|
This PR was closed due to inactivity.
|