mirror of
https://github.com/tenrok/axios.git
synced 2026-06-05 16:42:32 +03:00
ef6064c83b
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: neilnaveen <42328488+neilnaveen@users.noreply.github.com> Co-authored-by: Jay <jasonsaayman@gmail.com>
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
name: 'Close Stale'
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * 1'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
stale:
|
|
permissions:
|
|
issues: write # for actions/stale to close stale issues
|
|
pull-requests: write # for actions/stale to close stale PRs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Close Stale Issues
|
|
uses: actions/stale@v3
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
stale-issue-message: |
|
|
Hello! :wave:
|
|
|
|
This issue is being automatically marked as stale because it has not been updated in a while. Please confirm that the issue is still present and reproducible. If no updates or new comments are received the issue will be closed in a few days.
|
|
|
|
Thanks.
|
|
stale-pr-message: |
|
|
Hello! :wave:
|
|
|
|
This pull request is being automatically marked as stale because it has not been updated in a while. Please confirm that the issue is still present and reproducible. If no updates or new comments are received the pull request will be closed in a few days.
|
|
|
|
Thanks.
|
|
stale-issue-label: 'status:stale'
|
|
stale-pr-label: 'status:stale'
|
|
only-labels: 'status:more info needed'
|
|
days-before-stale: 30
|
|
days-before-close: 14
|