Repository navigation
chore: clarify issue triage #67
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release audit | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| source-history-artifact: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/setup-gitleaks | |
| - name: Classify change | |
| id: changes | |
| run: node scripts/ci-changes.mjs | |
| - name: Scan complete history and source snapshot | |
| shell: bash | |
| run: | | |
| gitleaks git --redact --config .gitleaks.toml --log-opts=--all | |
| mkdir "$RUNNER_TEMP/source-audit" | |
| git archive HEAD | tar -x -C "$RUNNER_TEMP/source-audit" | |
| gitleaks dir "$RUNNER_TEMP/source-audit" --redact --config .gitleaks.toml | |
| - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 | |
| if: steps.changes.outputs.docs_only != 'true' | |
| with: | |
| version: 9.12.0 | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| if: steps.changes.outputs.docs_only != 'true' | |
| with: | |
| node-version: "22" | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| if: steps.changes.outputs.docs_only != 'true' | |
| - run: pnpm build | |
| if: steps.changes.outputs.docs_only != 'true' | |
| - name: Scan built distribution | |
| if: steps.changes.outputs.docs_only != 'true' | |
| run: gitleaks dir dist --redact --config .gitleaks.toml |