-
Couldn't load subscription status.
- Fork 6
chore: update libs to fix vulnerabilities #241
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #241 +/- ##
=========================================
Coverage 69.14% 69.14%
Complexity 650 650
=========================================
Files 110 110
Lines 4593 4593
Branches 493 493
=========================================
Hits 3176 3176
Misses 1157 1157
Partials 260 260
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Also suggest moving the scan over either before this PR or as part of it, since right now no vuln scan is running to validate your changes. Example PR: hypertrace/java-grpc-utils#46 |
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
|
What should we do for vulnerability in |
|
On local, |
Caching. If you do a |
|
Fixed in hypertrace/java-grpc-utils#47 |
.github/workflows/pr-test.yml
Outdated
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| files: ./**/build/test-results/**/*.xml | ||
|
|
||
| dependency-check: |
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.
this should be part of pr-build.yaml
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.
Followed this to add depencycheck scan: hypertrace/java-grpc-utils#46 and here its part of pr-test.yml 😅
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.
Two competing concerns here. The test job and build job have different triggers based on how they use secrets. We want to put all jobs under the pull_request trigger rather than pull_request_target unless there's a reason not to, so we'll need to take a look at how we can best arrange these so that we can get everything needed scheduled, but not over-expose on the the pull_request_target trigger. Will put something up later this morning.
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.
OK updated attribute service as an example - we don't really need that separation of pull_request and pull_request_target any more, so we can merge the two into a single workflow that gets scheduled with a few changes. You may want to do that in a separate PR though, up to you.
https://github.com/hypertrace/attribute-service/pull/170/files
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.
Will update once the above one gets merged.
.github/workflows/pr-build.yml
Outdated
| pull_request_target: | ||
| branches: | ||
| - main | ||
|
|
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.
add a cron also:
on:
schedule:
- cron: 10 0 * * 1
|
@sanket-mundra use latest github action for scanning image: |
.github/workflows/build-and-test.yml
Outdated
| container: | ||
| image: bufbuild/buf:0.56.0 | ||
| credentials: | ||
| username: ${{ secrets.DOCKERHUB_READ_USER }} |
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.
Shouldn't use creds here. This is using the old buf version, we should upgrade to the GA buf (1.0+).
That'll look like
- name: Setup buf
uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ github.token }}
- name: Lint protos
uses: bufbuild/buf-lint-action@v1
- name: Check for breaking changes
uses: bufbuild/buf-breaking-action@v1
with:
against: '.git#branch=origin/main'It also means the buf config needs to be updated though so my suggestion for now would be to just remove the creds from here - let it run with anonymous pulls and we can come through and upgrade it after.
Description
Please include a summary of the change, motivation and context.
Testing
Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.
Checklist:
Documentation
Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.