BUILD-3093 Setup a GitHub action to enforce pre-commit at CI level #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |