# Remove explicit checkout ref from CI workflows

`1239f3e`→[main](/content/gh/entireio/git-sync/commits/main/index.html)·

Soph·3mo ago·2 files·+0 added/-4 removed

The PR head SHA ref is unset on push and workflow_dispatch events.
Default checkout behavior already does the right thing for all trigger types.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

## Sessions

c8daabe68860View transcript

## Changes

2

- .github/workflows

- Mci.yml-2
  
  - Mlint.yml-2

```
9 unmodified lines

10
11
12
13
14
13
14
15

9 unmodified lines

runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
        with:
          ref: ${{ github.event.pull_request.head.sha }}
      - uses: jdx/mise-action@v4
      - name: Tests
        run: mise run test:ci
```

M.github/workflows/ci.yml-2

```
13 unmodified lines

14
15
16
17
18
17
18
19

13 unmodified lines

runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
        with:
          ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/setup-go@v6
        with:
```

M.github/workflows/lint.yml-2
