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