Skip to content

Update ruling results for PR #5911 #128

Update ruling results for PR #5911

Update ruling results for PR #5911 #128

name: Ruling Diff Comment
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
# Trigger on ruling JSON file changes
- 'its/ruling/src/test/resources/**/*.json'
# Uncomment to test action changes
- '.github/workflows/ruling-diff-comment.yml'
workflow_dispatch:
inputs:
pr-number:
description: 'Pull request number'
required: true
type: string
base-sha:
description: 'Base commit SHA for diff'
required: true
type: string
head-sha:
description: 'Head commit SHA for diff'
required: true
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
ruling-diff-comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
submodules: true
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
enable-cache: true
# Use the action from the branch we just pushed
- name: Post ruling diff comment
uses: SonarSource/core-languages-tooling-public/ruling-diff-comment@master
with:
pr-number: ${{ inputs.pr-number || github.event.pull_request.number }}
repository: ${{ github.repository }}
base-sha: ${{ inputs.base-sha || github.event.pull_request.base.sha }}
head-sha: ${{ inputs.head-sha || github.event.pull_request.head.sha }}
ruling-root: 'its/ruling/src/test/resources'
sources-root: 'its/sources'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}