diff --git a/.github/workflows/periphery-comment.yml b/.github/workflows/periphery-comment.yml new file mode 100644 index 00000000..c570fa2e --- /dev/null +++ b/.github/workflows/periphery-comment.yml @@ -0,0 +1,16 @@ +name: Unused code comment + +on: + workflow_run: + workflows: ["Unused code"] + types: [completed] + +permissions: {} + +jobs: + comment: + if: github.event.workflow_run.event == 'pull_request' + permissions: + actions: read + pull-requests: write + uses: periphery-pro/actions/.github/workflows/comment.yml@v1 diff --git a/.github/workflows/periphery.yml b/.github/workflows/periphery.yml new file mode 100644 index 00000000..331dcf25 --- /dev/null +++ b/.github/workflows/periphery.yml @@ -0,0 +1,14 @@ +name: Unused code + +on: + pull_request: + push: + branches: ["main"] + +jobs: + periphery: + permissions: + actions: read + contents: read + id-token: write + uses: periphery-pro/actions/.github/workflows/scan.yml@v1