diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml new file mode 100644 index 0000000..567d34d --- /dev/null +++ b/.github/workflows/security.yml @@ -0,0 +1,26 @@ +name: Security Analysis + +on: + workflow_dispatch: + pull_request: + types: [opened, synchronize] + paths: + - ".github/workflows/**" + push: + branches: + - main + paths: + - ".github/workflows/**" + +permissions: {} + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.ref_name != 'main' }} + +jobs: + security: + name: Security Analysis + runs-on: ubuntu-latest + steps: + - uses: oxc-project/security-action@fbbd523b1e765ceb174cb819b92c453bb1da265e # v1.0.0 diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml deleted file mode 100644 index 2c1d5c6..0000000 --- a/.github/workflows/zizmor.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Zizmor - -permissions: {} - -on: - workflow_dispatch: - pull_request: - types: [opened, synchronize] - paths: - - ".github/workflows/**" - push: - branches: - - main - paths: - - ".github/workflows/**" - -jobs: - zizmor: - name: zizmor - runs-on: ubuntu-latest - permissions: - security-events: write - steps: - - name: Checkout repository - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - - uses: taiki-e/install-action@0abfcd587b70a713fdaa7fb502c885e2112acb15 # v2.75.7 - with: - tool: zizmor - - - name: Run zizmor - run: zizmor --format sarif . > results.sarif - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Upload SARIF file - uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 - with: - sarif_file: results.sarif - category: zizmor