Skip to content
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

Add CodeQL GH Action #4552

Merged
merged 10 commits into from
Jan 16, 2023
Merged

Add CodeQL GH Action #4552

merged 10 commits into from
Jan 16, 2023

Conversation

hawflau
Copy link
Contributor

@hawflau hawflau commented Jan 9, 2023

Which issue(s) does this change fix?

Why is this change necessary?

Enable Code Scan through GH Action

How does it address the issue?

What side effects does this change have?

Mandatory Checklist

PRs will only be reviewed after checklist is complete

  • Add input/output type hints to new functions/methods
  • Write design document if needed (Do I need to write a design document?)
  • Write/update unit tests
  • Write/update integration tests
  • Write/update functional tests if needed
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hawflau hawflau requested a review from a team as a code owner January 9, 2023 19:10
@hawflau hawflau requested review from mildaniel and hnnasit January 9, 2023 19:10
Copy link
Contributor

@sriram-mv sriram-mv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this going to be a gating workflow, preventing PR merges? What kind of actions does the unsuccessful run of codeql action entail on us?

@@ -201,6 +201,10 @@ def generate_thumbprint(oidc_provider_url: Optional[str]) -> Optional[str]:
# Create an IPV4 socket and use TLS for the SSL connection
address = (url_for_certificate, 443)
ctx = SSL.Context(SSL.TLS_METHOD)
ctx.set_options(SSL.OP_NO_TLSv1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we verify this with unit tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@sriram-mv sriram-mv self-requested a review January 10, 2023 19:17
Copy link
Contributor

@sriram-mv sriram-mv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing my review to reflect requesting changes.

@hawflau
Copy link
Contributor Author

hawflau commented Jan 16, 2023

@sriram-mv

Is this going to be a gating workflow, preventing PR merges? What kind of actions does the unsuccessful run of codeql action entail on us?

Yes, it's run on each PR. Failure of this action should prevent the PR from being merged. And the PR author should fix me.

The action will also run on schedule, because existing code might be subjected to newly discovered vulnerabilities. We will get notified and also can check from the "Security" tab in the repo.

@hawflau hawflau enabled auto-merge (squash) January 16, 2023 21:40
@hawflau hawflau dismissed sriram-mv’s stale review January 16, 2023 21:40

addressed comment

@hawflau hawflau merged commit 67baee9 into aws:develop Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants