From 42b7f218c90962bdcc9c0029c4b04fad6917df50 Mon Sep 17 00:00:00 2001 From: Omkar P <45419097+omkar-foss@users.noreply.github.com> Date: Wed, 27 May 2026 21:16:38 +0530 Subject: [PATCH 1/2] Add workflow to run ai detection action within repo Signed-off-by: Omkar P <45419097+omkar-foss@users.noreply.github.com> --- .github/workflows/ai_detection.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ai_detection.yml diff --git a/.github/workflows/ai_detection.yml b/.github/workflows/ai_detection.yml new file mode 100644 index 0000000..12aff00 --- /dev/null +++ b/.github/workflows/ai_detection.yml @@ -0,0 +1,25 @@ +# Workflow to run our AI Detection action +# https://github.com/chaoss/disclosure/blob/main/action/action.yml + +name: Run AI Detection action locally in repo + +on: + pull_request: + branches: [ "main" ] + +permissions: + contents: read + # pr and issue write access is needed by the ai detection action + # to add a label to the pr, in this step: + # https://github.com/chaoss/disclosure/blob/main/action/action.yml#L95-L99 + pull-requests: write + issues: write + +jobs: + run-ai-detection-action: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Run AI detection action + uses: ./action From 59f9e42f3932f4ccec8e2a10b5ebd2ec7be65550 Mon Sep 17 00:00:00 2001 From: Omkar P <45419097+omkar-foss@users.noreply.github.com> Date: Thu, 4 Jun 2026 13:04:22 +0530 Subject: [PATCH 2/2] Get commit history right from base commit Signed-off-by: Omkar P <45419097+omkar-foss@users.noreply.github.com> --- .github/workflows/ai_detection.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ai_detection.yml b/.github/workflows/ai_detection.yml index 12aff00..ca8fe8a 100644 --- a/.github/workflows/ai_detection.yml +++ b/.github/workflows/ai_detection.yml @@ -21,5 +21,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + # we get commit history from base as its needed by the AI detection action + fetch-depth: 0 - name: Run AI detection action uses: ./action