We have a repository integrated with Codacy for static code analysis. While the pipeline generally functions as expected, we occasionally encounter an issue where the "Codacy Static Code Analysis" action does not get triggered from the GitHub workflow. Despite successful pushes and the rest of the pipeline running normally, Codacy’s analysis doesn’t start. Even after waiting for extended periods (days), the action still does not get triggered or return any results.
The issue is intermittent but seems to occur more frequently after force pushes (git push --force) to branches.
Repository Workflow:
Our CI/CD pipeline is set up using GitHub Actions. Below is a summary of relevant details:
Trigger Configuration:
The GitHub Actions workflow is set to trigger on any push to any branch.
Example yml workflow file configuration:
on:
push:
branches:
- '**'
Force pushes are included in this configuration.
Relevant Job Details:
After running the tests and generating code coverage, the workflow uploads coverage to Codacy using the Codacy CLI:
Description:
We have a repository integrated with Codacy for static code analysis. While the pipeline generally functions as expected, we occasionally encounter an issue where the "Codacy Static Code Analysis" action does not get triggered from the GitHub workflow. Despite successful pushes and the rest of the pipeline running normally, Codacy’s analysis doesn’t start. Even after waiting for extended periods (days), the action still does not get triggered or return any results.
The issue is intermittent but seems to occur more frequently after force pushes (git push --force) to branches.
Repository Workflow:
Our CI/CD pipeline is set up using GitHub Actions. Below is a summary of relevant details:
Trigger Configuration:
Relevant Job Details:
After running the tests and generating code coverage, the workflow uploads coverage to Codacy using the Codacy CLI:
Observed Behavior:
Expected Behavior:
Upon any push to a branch, including force pushes, the Codacy static code analysis should be triggered automatically as part of the CI/CD pipeline.
Steps to Reproduce:
Environment: