Skip to content

Commit

Permalink
Checkton the files in this repo
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Cmiel <[email protected]>
  • Loading branch information
chmeliik committed Jun 21, 2024
1 parent c46da2c commit 87faba0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/checkton-self.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Checkton
on:
pull_request:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Modify action.yaml to build latest image on the fly
run: |
sed -E "s;(\s*)image: .*;\1image: Dockerfile;" -i action.yaml
- name: Run self on self
id: checkton
uses: ./
with:
# funnily enough, checkton happens to work on regular shell scripts as well
include-regex: \.(sh|bash|yml|yaml)$
# exclude test data and submodules
exclude-regex: ^test/resources/files-to-check/|^test/.*bats(-support|-assert)/
differential: false
fail-on-findings: false

- 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 87faba0

Please sign in to comment.