diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3eb46c8..a058d42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + persist-credentials: false - name: Install pnpm uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e8e833e..19df522 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,6 +14,8 @@ jobs: environment: Release steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + persist-credentials: false - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6 @@ -24,7 +26,6 @@ jobs: registry-url: https://registry.npmjs.org/ # disable cache, to avoid cache poisoning (https://docs.zizmor.sh/audits/#cache-poisoning) package-manager-cache: false - cache: "pnpm" - name: Disallow installation scripts run: yq '.onlyBuiltDependencies = []' -i pnpm-workspace.yaml @@ -35,4 +36,4 @@ jobs: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" - name: Publish package - run: npm i -g npm@^11.5.2 && pnpm run ci-publish ${{ github.ref_name }} + run: npm i -g npm@^11.5.2 && pnpm run ci-publish "$GITHUB_REF_NAME" diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 03619f8..5352f61 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + persist-credentials: false - name: Create Release for Tag id: release_tag uses: yyx990803/release-tag@8cccf7c5aa332d71d222df46677f70f77a8d2dc0 # master diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml new file mode 100644 index 0000000..112d7bf --- /dev/null +++ b/.github/workflows/zizmor.yml @@ -0,0 +1,30 @@ +name: Zizmor + +on: + workflow_dispatch: + pull_request: + 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: + zizmor: + name: Run zizmor + runs-on: ubuntu-latest + permissions: + security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files. + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + persist-credentials: false + + - name: Run zizmor 🌈 + uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3