Skip to content

Malware scan, assignment check and auto-merge bot - #10

Merged
samjay8 merged 2 commits into
mainfrom
ci/merge-bot
Oct 26, 2026
Merged

samjay8 merged 2 commits into
mainfrom
ci/merge-bot

Conversation

@samjay8

@samjay8 samjay8 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Adds the same PR automation the Agrisettle repositories run.

  • Malware scan (malware-scan.yml, .github/scripts/malware_scan.py and its 16 self-tests): scans every PR's added code for malware and supply-chain patterns, and publishes the result as the Malware scan commit status. It runs the base-branch copy through pull_request_target, never PR code, and stays silent unless it finds something.
  • Assignment check (require-assignment.yml): closes a PR as soon as it's opened if its author isn't assigned to the issue it links.
  • Auto-merge bot (auto-merge.yml): merges a PR once its author is assigned, the required checks pass and the scan is clean. It holds PRs that are both large and out of scope for a maintainer. On merge it posts "Merged — thanks for your contribution! 🎉".

All four files are copied unchanged from Agrisettle/HarvestLock, except the bot's two lists, which name this repository's CI jobs and directories.

The same automation the Agrisettle repositories run:

- malware-scan.yml and .github/scripts/malware_scan.py (with its self-tests)
  scan every PR's added code for malware and supply-chain patterns and
  publish the result as the "Malware scan" commit status. Silent unless it
  finds something.
- require-assignment.yml closes a PR whose author is not assigned to the
  issue it links, as soon as it is opened.
- auto-merge.yml merges a PR once its author is assigned, its checks pass
  and the malware scan is clean, and holds large out-of-scope PRs for a
  maintainer.

Copied unchanged except the bot's check and scope lists for this
repository, and its CodeRabbit request, which only runs where
.coderabbit.yaml exists.
@samjay8
samjay8 merged commit 2f7c1be into main Oct 26, 2026
4 checks passed
@samjay8
samjay8 deleted the ci/merge-bot branch October 26, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant