Skip to content

BUILD-3093 Setup a GitHub action to enforce pre-commit at CI level #8

BUILD-3093 Setup a GitHub action to enforce pre-commit at CI level

BUILD-3093 Setup a GitHub action to enforce pre-commit at CI level #8

Workflow file for this run

on:
pull_request:
jobs:
pre-commit:
name: "pre-commit"
runs-on: ubuntu-latest
steps:
- uses: SonarSource/gh-action_pre-commit@feature/svermeille/BUILD-3093-Provide-a-reusable-way-at-CI-level-to-enforce-pre-commits-in-the-organization #TODO: ref tag 0.0.1 after merge
with:
extra-args: --from-ref=origin/${{ github.event.pull_request.base.ref }} --to-ref=${{ github.event.pull_request.head.sha }}