aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/fossier.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/fossier.yml')
-rw-r--r--.github/workflows/fossier.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/fossier.yml b/.github/workflows/fossier.yml
new file mode 100644
index 00000000..ff60125b
--- /dev/null
+++ b/.github/workflows/fossier.yml
@@ -0,0 +1,26 @@
+name: Fossier PR Check
+on:
+ pull_request_target:
+ types: [opened, synchronize]
+
+permissions:
+ pull-requests: write
+ issues: write
+
+jobs:
+ check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: PThorpe92/fossier@main
+ id: fossier
+ with:
+ contact-url: "https://discord.gg/Fq8bJSKPHh"
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ # Optional: connect to the global spam registry
+ # registry-api-key: ${{ secrets.FOSSIER_REGISTRY_API_KEY }}
+
+ - name: Handle result
+ if: steps.fossier.outputs.outcome == 'deny'
+ run: echo "PR denied with score ${{ steps.fossier.outputs.score }}"