diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml new file mode 100644 index 00000000..e43a2aa3 --- /dev/null +++ b/.github/workflows/security.yml @@ -0,0 +1,21 @@ +name: Security analysis + +on: + push: + branches: + - main + pull_request: + branches: + - "**" + +permissions: {} + +jobs: + zizmor: + permissions: + contents: read + actions: read + security-events: write + uses: suitenumerique/ci/.github/workflows/_zizmor.yml@main + with: + config: .github/zizmor.yml diff --git a/.github/zizmor.yml b/.github/zizmor.yml new file mode 100644 index 00000000..863510c2 --- /dev/null +++ b/.github/zizmor.yml @@ -0,0 +1,5 @@ +rules: + unpinned-uses: + config: + policies: + "suitenumerique/*": ref-pin