Skip to content

Can annotations be shown to PRs on each commit on code? #43

Open
@tsigouris007

Description

@tsigouris007

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:
ksnip_20210903-133500

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:
ksnip_20210903-134036

Second push with unchanged line (yet still finding in the job):
ksnip_20210903-134325

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions