Description
My scenario is that I have integrated a static code analysis tool that produces a json file in the format needed for this action to work.
Sample of my action:
- name: Beautify + create annotations result
run: |
ruby parser.rb -f ${{env.TMPFILE}}
ruby annotate.rb -f ${{env.OUTFILE}} -o ./annotations.json
- name: Annotate
uses: yuzutech/[email protected]
with:
repo-token: ${{secrets.GITHUB_TOKEN}}
input: ./annotations.json
title: 'Findings'
ignore-missing-file: true
The annotations are displayed perfectly on the action page such as:
But when clicking on the finding nothing gets displayed on the file anywhere I looked for (main PR page, commit page, files changed page). If a specific line has changed during the last commit it works, but on then next push if the line does not get changed the failure message is not shown again.
First push with changed line:
Second push with unchanged line (yet still finding in the job):
Is there an option to maintain all findings even if not lines are changed on next commits such as this one according to my annotations.json
file? Or even better to maintain all annotations on files changed?
Thank you!
Activity