Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Auto author assign

on:
pull_request_target:
types: [opened, reopened]

permissions:
pull-requests: write

jobs:
assign:
uses: smileidentity/central-workflows/.github/workflows/auto-author-assign.yml@v1
Comment on lines +10 to +12

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

14 changes: 14 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Flag stale PRs

on:
schedule:
- cron: '30 16 * * *'
workflow_dispatch:

permissions:
issues: write
pull-requests: write

jobs:
stale:
uses: smileidentity/central-workflows/.github/workflows/stale.yml@v1
Loading