Skip to content

Commit f4d5d79

Browse files
authored
chore: Use SARIF format for typos check in CI (#165)
1 parent d380b45 commit f4d5d79

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Jenkinsfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ pipeline {
1919
stage('Check for typos') {
2020
steps {
2121
sh '''
22-
curl -qsL https://github.com/crate-ci/typos/releases/download/v1.13.7/typos-v1.13.7-x86_64-unknown-linux-musl.tar.gz | tar xvzf - ./typos
23-
curl -qsL https://github.com/halkeye/typos-json-to-checkstyle/releases/download/v0.1.1/typos-checkstyle-v0.1.1-x86_64 > typos-checkstyle && chmod 0755 typos-checkstyle
24-
./typos --format json | ./typos-checkstyle - > checkstyle.xml || true
22+
curl -qsL https://github.com/crate-ci/typos/releases/download/v1.33.1/typos-v1.33.1-x86_64-unknown-linux-musl.tar.gz | tar xvzf - ./typos
23+
./typos --format json > typos.sarif || true
2524
'''
2625
}
2726
post {
2827
always {
29-
recordIssues(tools: [checkStyle(id: 'typos', name: 'Typos', pattern: 'checkstyle.xml')])
28+
recordIssues(tools: [sarif(id: 'typos', name: 'Typos', pattern: 'typos.sarif')])
3029
}
3130
}
3231
}

0 commit comments

Comments
 (0)