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.

Signed-off-by: Sean Conroy <[email protected]>
  • Loading branch information
seanconroy2021 committed Jul 11, 2024
1 parent dadf55b commit 05a53f0
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 @@ -43,3 +43,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

Check failure on line 56 in .github/workflows/lint.yaml

View workflow job for this annotation

GitHub Actions / yamllint

too few spaces before comment
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 05a53f0

Please sign in to comment.