-
Notifications
You must be signed in to change notification settings - Fork 3
chore(ci): modernise GitHub workflows #1095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d1b04cd
e94415c
233a5ad
12bfffa
bd4324a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| name: "Sloth" | ||
|
|
||
| on: | ||
| pull_request: | ||
| merge_group: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| checks: read | ||
|
|
||
| jobs: | ||
| sloth: | ||
| name: "Sloth" | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: Sloth | ||
| uses: lendable/sloth@dbff4bbe34557fd3bd3865387f900d92034b9259 # v1.2 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| case-sensitive: false |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| name: "Stale Activity" | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "30 7 * * 1-5" | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Overly Broad Permissions in GitHub Actions Workflows is risky - medium severity Show fixRemediation: Set Reply |
||
| actions: read | ||
| pull-requests: read | ||
|
|
||
| jobs: | ||
| remove-stale-branches: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will this also remove branches with open PRs? 🤔 |
||
| name: "Remove stale branches" | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: fpicalausa/remove-stale-branches@9b829bc2975ade0c61e64e9613def53ec0732440 # v2.6.1 | ||
| with: | ||
| exempt-branches-regex: "^(master)$" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if ever go from "master" to "main" this has to be reflected |
||
| days-before-branch-stale: 182 | ||
| days-before-branch-delete: 7 | ||
| stale-branch-message: > | ||
| This branch [{branchName}]({branchUrl}) hasn't been updated in the last 6 months and is marked as stale. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: should we mention the |
||
|
|
||
| It will be removed in a week. If you want to keep this branch around, delete this comment or add new commits to this branch. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in theory we could add concurrency here as well even though the chances of having issues with concurrency here is minimal:
e.g.
concurrency: group: "stale-activity" cancel-in-progress: true