feat: Disallow a function wrapped in useCallback or a variable wrapped in useMemo yet only used in useEffect and only in one useEffect, closes #1278 #635
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: Check Provenance | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, edited, reopened, synchronize] | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-provenance: | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check provenance downgrades | |
| uses: danielroe/provenance-action@main | |
| id: check | |
| with: | |
| fail-on-provenance-change: true # optional, default: false | |
| lockfile: pnpm-lock.yaml # optional | |
| # base-ref: origin/main # optional, default: origin/main | |
| fail-on-downgrade: true # optional, default: true | |
| - name: Print result | |
| run: "echo 'Downgraded: ${{ steps.check.outputs.downgraded }}'" |