Skip to content

Intevation/ai-contribution-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

GitHub Action for AI Contribution Detection

A GitHub Action that detects whether commits in a pull request were (co-)authored by an LLM.

How it works

The action inspects every commit between the PR base and head, and checks:

  • Co-authorship: Co-authored-by: lines are matched against a list of known LLM tool patterns
  • Authorship: commit authors are matched against a list of known LLM bot accounts

If a match is found, the suspicious commits and the matching patterns are reported in the log and the workflow step summary. If comment-on-detection is true, the action also posts a comment on the pull request.

Usage

Add it to a workflow triggered on pull_request:

name: Check for AI co-authorships

on:
  pull_request:

permissions: {}

jobs:
  ai-coauthorship-check:
    runs-on: ubuntu-latest
    permissions:
      contents: read
    steps:
      - uses: Intevation/ai-contribution-action@main

Inputs

Input Required Default Description
fail-on-detection No true Exit with a non-zero status code when LLM (co-)authorship is detected. Set to false to only report.
comment-on-detection No false Post a PR comment when LLM (co-)authorship is detected.

Post a PR comment on detection

Requires pull-requests: write permission:

jobs:
  ai-coauthorship-check:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: write
    steps:
      - uses: Intevation/ai-contribution-action@main
        with:
          comment-on-detection: true

License

SPDX-License-Identifier: Apache-2.0

SPDX-FileCopyrightText: 2026 German Federal Office for Information Security (BSI) <https://www.bsi.bund.de>
Software-Engineering: 2026 Intevation GmbH <https://intevation.de>

About

A GitHub Action checking if a contribution was made with AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors