ci: check pull requests for an AI-use disclosure (SCPE level 1) - #1
Merged
Conversation
Every PR now gets a comment saying whether it carries an AI-use disclosure — an `Assisted-by:` commit trailer, or a ticked box in the new PR template. Using AI on this project is fine; the check is about saying so. Informational for now: `require: "false"` posts the result and never fails the check. Flipping it to "true" makes the disclosure a merge requirement. Nothing is installed on the runner and no key is involved at this level — the Action runs one stdlib-only Python file out of its own checkout at the pinned tag. Two files because a workflow that names itself in `workflow_run.workflows` cannot register with GitHub: scpe.yml runs contributor code with no secrets, scpe-seal.yml holds the write token and only posts the comment. https://github.com/augbastos/scpe
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.
Installs SCPE level 1: every pull request gets a comment saying whether it carries an AI-use disclosure — an
Assisted-by:commit trailer, or a ticked box in the new PR template.Informational for now (
require: "false") — it posts the result and never fails the check.Opened as a pull request rather than pushed straight to
masterbecausemasterhere has a local commit that has not been published yet; this branch is cut fromorigin/masterso nothing else rides along.The seal comment starts appearing on the next PR:
workflow_runonly fires for a workflow file already on the default branch.