Skip to content

update Checkton version to v0.1.0-alpha.2 in linting workflow #16

update Checkton version to v0.1.0-alpha.2 in linting workflow

update Checkton version to v0.1.0-alpha.2 in linting workflow #16

Workflow file for this run

---
name: Linters
on: # yamllint disable-line rule:truthy
pull_request:
types: ['opened', 'reopened', 'synchronize']
workflow_dispatch:
jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run yamllint
uses: frenck/action-yamllint@v1
tknparse:
runs-on: ubuntu-latest
steps:
- name: checkout files
uses: actions/checkout@v3
- name: install tkn
uses: ./.github/actions/install-tkn
- name: Get changed files
uses: tj-actions/changed-files@v41
id: changed-files
with:
files: |
**/*.yaml
- name: Run tkn util
run: .github/scripts/tkn_check_parse.sh
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_REFNAME: ${{ github.ref_name }}
gitlint:
name: Run gitlint checks
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Install gitlint into container
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
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Checkton
id: checkton
uses: chmeliik/[email protected]
with:
fail-on-findings: false
- name: Upload SARIF File
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.checkton.outputs.sarif }}
category: checkton