Repository navigation
Use shared PR author and stale workflows - #63
Merged
Merged
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Comment on lines
+10
to
+12
| jobs: | ||
| assign: | ||
| uses: smileidentity/central-workflows/.github/workflows/auto-author-assign.yml@v1 |
There was a problem hiding this comment.
Suggestion: This job runs on pull_request_target with pull-requests: write, and it uses the mutable @v1 tag. Anyone who can move or re-push that tag in central-workflows can change the code that runs here, including on PRs from forks, without a change to this repo. Pin the reusable workflow to a full commit SHA, keep the tag in a comment, and let Dependabot or Renovate update it; do the same in stale.yml. Replace <full-40-char-commit-sha-of-v1> with the SHA that v1 points to now. [security, importance: 5]
Suggested change
| jobs: | |
| assign: | |
| uses: smileidentity/central-workflows/.github/workflows/auto-author-assign.yml@v1 | |
| jobs: | |
| assign: | |
| # Pinned to the commit for v1; update via Dependabot/Renovate | |
| uses: smileidentity/central-workflows/.github/workflows/auto-author-assign.yml@<full-40-char-commit-sha-of-v1> # v1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Assign PR authors and flag inactive PRs consistently across active repositories.
Calls the shared workflows in central-workflows at
v1. PRs receive a stale label after 14 inactive days. Issues are excluded and nothing is closed automatically.Validation: the distributor checked the caller diff for whitespace errors. Check this repository's Actions runs after merging; this PR does not prove the workflows have run here.
PR Type
Other
Description
Add PR author auto-assign workflow via shared
central-workflowsAdd daily scheduled stale PR flagging workflow
Both reference reusable workflows pinned to
v1Scoped permissions:
pull-requests(andissues) writeDiagram Walkthrough
File Walkthrough
auto-author-assign.yml
Add caller workflow for automatic PR author assignment.github/workflows/auto-author-assign.yml
pull_request_targetforopenedandreopenedevents
pull-requests: writepermissionsmileidentity/central-workflows/.github/workflows/auto-author-assign.yml@v1stale.yml
Add scheduled caller workflow to flag stale PRs.github/workflows/stale.yml
30 16 * * *withworkflow_dispatchsupport
issues: writeandpull-requests: writepermissionssmileidentity/central-workflows/.github/workflows/stale.yml@v1