-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create codacy-coverage-reporter.yaml #158
base: main
Are you sure you want to change the base?
Conversation
added code coverage reporter from codacy which attaches coverage results.
Reviewer's Guide by SourceryThis pull request introduces a new GitHub Actions workflow, No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
uses: actions/checkout@v3 | ||
|
||
- name: Run codacy-coverage-reporter | ||
uses: codacy/codacy-coverage-reporter-action@v1.3.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue highlighted by the Semgrep linter is that the GitHub Action codacy/codacy-coverage-reporter-action@v1.3.0
is being referenced by a version tag (v1.3.0
) rather than a full-length commit SHA. Using a version tag can lead to potential security vulnerabilities as the code associated with that tag may change in the future. Pinning to a specific commit SHA ensures that the action remains immutable and that the same code is executed every time, reducing the risk of unexpected behavior or security issues.
To fix this issue, you should replace the version tag with the full-length commit SHA of the version you want to use. You can find the commit SHA by looking at the repository's release history on GitHub.
Assuming the commit SHA for version v1.3.0
is abcdef1234567890abcdef1234567890abcdef12
, the change would look like this:
uses: codacy/codacy-coverage-reporter-action@v1.3.0 | |
uses: codacy/codacy-coverage-reporter-action@abcdef1234567890abcdef1234567890abcdef12 |
This comment was generated by an experimental AI tool.
added code coverage reporter from codacy which attaches coverage results.
Summary by Sourcery
CI: