Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: Pre-commit Checks
on:
pull_request:
permissions:
id-token: write
contents: write
merge_group:
push:
branches:
- master
Comment thread
gitar-bot[bot] marked this conversation as resolved.
- branch-*

name: pre-commit

jobs:
pre-commit:
runs-on: warp-custom-ubuntu-24-04
runs-on: sonar-xs
Comment thread
gitar-bot[bot] marked this conversation as resolved.
permissions:
id-token: write
contents: read
Comment thread
matemoln marked this conversation as resolved.
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: ./config-npm
- uses: ./config-pip
- uses: SonarSource/gh-action_pre-commit@2ddc0c7fdabce0adfaaa4075a17690972ed9961a # 1.2.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
extra-args: >
--from-ref=origin/${{ github.event.pull_request.base.ref }}
--to-ref=${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: SonarSource/mise-action-wrapper@v1
- uses: SonarSource/gh-action_pre-commit@v2
8 changes: 6 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ repos:
hooks:
- id: yamllint
args: [--strict, --config-file=.yamllint.yaml]
- repo: https://github.com/koalaman/shellcheck-precommit
rev: 99470f5e12208ff0fb17ab81c3c494f7620a1d8d # v0.11.0
- repo: local
hooks:
- id: shellcheck
name: shellcheck
description: Static analysis of shell scripts (mise installed shellcheck)
entry: shellcheck
language: system
types: [shell]
Comment thread
matemoln marked this conversation as resolved.
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 1a4bb160cab6417b3045e1b37b6b72449243e658 # frozen: 0.37.4
hooks:
Expand Down
Loading