Repository navigation
feat: warn when reward_scale changes mid-block in the backfill #160
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: Lint | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| prek: | |
| name: prek | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| # gitleaks scans the commits since the base, which needs the history | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0 | |
| with: | |
| enable-cache: true | |
| - name: Run prek | |
| env: | |
| # gitleaks scans staged changes, of which there are none here: it runs | |
| # in the next step on the commits of the PR instead | |
| SKIP: gitleaks | |
| run: uvx prek run --all-files --show-diff-on-failure | |
| - name: Scan the commits of the PR (or push) for secrets | |
| # a manual run has no base to scan from | |
| if: github.event_name != 'workflow_dispatch' | |
| env: | |
| GITLEAKS_BASE: ${{ github.event.pull_request.base.sha || github.event.before }} | |
| run: uvx prek run gitleaks --all-files --verbose |