codacy / codacy-analysis-cli-action

GitHub Action for the codacy-analysis-cli
https://github.com/codacy/codacy-analysis-cli
Apache License 2.0
56 stars 18 forks source link

[TCE-1014] When Dependabot runs workflow the action fails #127

Closed vitalijr2 closed 3 days ago

vitalijr2 commented 1 month ago

The related issue for coverage action.

The static code analisys is failed but Codacy says nothing why it is happend. PR are affected by this issue: https://github.com/vitalijr2/aws-lambda-slf4j/pull/30 https://github.com/vitalijr2/aws-lambda-slf4j/pull/29 https://github.com/vitalijr2/aws-lambda-slf4j/pull/28 https://github.com/vitalijr2/ijhttp-tools/pull/32 https://github.com/vitalijr2/ijhttp-tools/pull/31

Defailt for https://github.com/vitalijr2/aws-lambda-slf4j/pull/30 The page https://app.codacy.com/gh/vitalijr2/aws-lambda-slf4j/pull-requests/30/issues says there are two problems but the pop-up shows empty logs screenshot_2024-06-17_15-27-03_335335507

github-actions[bot] commented 1 month ago

Internal ticket created : TCE-1014

vitalijr2 commented 1 month ago

What I have found: I use in my workflow output to sarif for integration with GitHub code scanning.

When I play with parameters I have found one case when GitHub asks to commit a sarif file:

06/17 19:31:21 ERROR c.c.a.c.command.AnalyseCommand:111 - There are uncommitted changes in the project. Please commit them before running your analysis: Uncommited files: results.sarif Error: Process completed with exit code 11.

Then I have added resutls.sarif to .gitignore and it resolved this issue. See PR https://github.com/vitalijr2/aws-lambda-slf4j/pull/28