Skip to content

Commit 952555f

Browse files
Fix Linter issue
1 parent 9ce53de commit 952555f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/linter.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,15 @@ permissions:
1111

1212
jobs:
1313
lint:
14-
if: github.event.review.state == 'approved'
14+
if: github.event_name == 'pull_request' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
1515
name: Lint Code Base
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout Code
1919
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2020
with:
21-
# Check out the PR head through GitHub's pull ref for review events
22-
ref: refs/pull/${{ github.event.pull_request.number }}/head
23-
# Full git history is needed to get a proper list of changed files within `super-linter`
21+
ref: ${{ github.event.pull_request.head.sha }}
2422
fetch-depth: 0
25-
# Disable credential persistence to harden the runner
2623
persist-credentials: false
2724

2825
- name: Set lint SHA from checked-out HEAD

0 commit comments

Comments
 (0)