Repository navigation
ci: Label PRs from potentially automated accounts with AgentScan - #26991
2010YOUY01 wants to merge 1 commit into
Conversation
|
its like we are now entering the email spam/spamassasin loop game that email providers had to deal with for many years |
alamb
left a comment
There was a problem hiding this comment.
I think the idea in general is great.
| package-manager-cache: false | ||
|
|
||
| - name: Install AgentScan's analyzer | ||
| # Pin both packages so the classification rules do not change between runs. |
There was a problem hiding this comment.
I worry about the security implications of running this package
There was a problem hiding this comment.
It seems like nodejs installs it in a different way:
https://github.com/nodejs/node/blob/95f3cf072e83d94ac90616c86a370b250f44a8d7/.github/workflows/contributor-guidance.yml#L77
There was a problem hiding this comment.
I agree with the concern about supply-chain security issue.
It can't get installed like nodejs, because we can only use whitelisted GitHub actions from ASF (not sure if it's possible to add it to the ASF whitelist)
|
@alamb Thank you for the review! I don't have a good idea for the above issues yet. I'll try to revisit it later, but if anyone knows how to fix it, feel free to take over this PR and finish it. |
|
Maybe as other in the ecosystem figure out the agent spam thing there will be a more widely adopted action 🤔 |
Which issue does this PR close?
Rationale for this change
Label PRs from potentially automated accounts with AgentScan
How would this automation look like
Here is a demo in Node.js repo, this PR adds something similar
It will automatically add the
Prolific Authorlabel and one AI-policy reminder when a PR author is classified as agents-like.Prolific Authoris introduced by @alamb in #23839 (comment), now it's manually managed, maybe we can rename it to something likePotentialAgents:auto-detectedandPotentialAgents:community-flaggedlater.How it works
@unveil/vkand@unveil/identitythrough npm.@unveil/vkfetches the PR author’s public GitHub activity.@unveil/identityscores the activity locally using signals such as 24/7 activity or 100 PRs per day. Authors classified asmixedorautomationreceive the label and policy reminder.Note
identityis the core scoring engine behind AgentScan, which the same as whatNode.jsrepo is using in their CIExample user scan:
What changes are included in this PR?
Added 2 GitHub workflow. Their top comments explains their inner mechanism.
What is the testing strategy for this PR?
I think it's not easy to test before merge, so I let Codex double checked that this will likely work.
Are there any user-facing changes?