Skip to content

Commit

Permalink
feat(RELEASE-951): integrate Checkton for linting
Browse files Browse the repository at this point in the history
This updats the linting workflow by adding Checkton.
Checkton will review code for linting errors.

Changes:
* Added a step to the workflow to run Checkton.
* Configured Checkton to upload the SARIF report.

This implementation is based on: konflux-ci/build-definitions#1051
  • Loading branch information
seanconroy2021 committed Jul 9, 2024
1 parent 46f3ccc commit 49d3a7c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,24 @@ jobs:
run: python -m pip install gitlint
- name: Run gitlint check
run: gitlint --commits origin/${{ github.event.pull_request.base.ref }}..HEAD
checkton:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
# Differential Checkton requires full git history
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Checkton
id: checkton
uses: chmeliik/[email protected] # Migrating to the konflux-ci org
with:
# Let there be green. GitHub's code scanning will do the reporting.
fail-on-findings: false
find-copies-harder: true
- name: Upload SARIF File
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.checkton.outputs.sarif }}
# Avoid clashing with ShellCheck
category: checkton

0 comments on commit 49d3a7c

Please sign in to comment.