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 Github Action #9252

Merged
merged 4 commits into from
Mar 19, 2025
Merged

add CodeQL Github Action #9252

merged 4 commits into from
Mar 19, 2025

Conversation

carlsonp
Copy link
Contributor

@carlsonp carlsonp commented Jan 3, 2023

What this PR does / why we need it:

This adds a Github Action for CodeQL. It integrates well since it's from Github. It helps in checking for security vulnerabilities.

Will be a no-op for code and documentation.

Which issue(s) this PR closes:

Special notes for your reviewer:

Suggestions on how to test this:

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

@pdurbin pdurbin added the Size: 10 A percentage of a sprint. 7 hours. label Feb 28, 2024
@scolapasta
Copy link
Contributor

If you are still interested in this PR, can you please merge and resolve any merge conflicts with the latest from develop? If so, we can prioritize reviewing and QAing the changes. If we don’t hear from you by May 22, 2024, we’ll go ahead and close this PR (it can always be reopened after that date, if there is still interest).

@carlsonp
Copy link
Contributor Author

Rebased onto develop branch

@bencomp
Copy link
Contributor

bencomp commented Jul 25, 2024

Hooray for code quality tools integration! I hope this PR will be merged, and/or #9847. (I'm not really involved, but have been a proponent of cleaning up the code base for years.)

However, https://github.com/IQSS/dataverse/actions/runs/8842621992 says that the autobuild failed and to update the used actions. Could you have a look at the suggestions?

@pdurbin pdurbin added the Type: Feature a feature request label Oct 9, 2024
@cmbz
Copy link

cmbz commented Nov 18, 2024

2024/11/18: @ofahimIQSS please review and decide how we can move it forward. Thanks!

@ofahimIQSS
Copy link
Contributor

I’m currently researching the potential benefits of integrating CodeQL into our GitHub Actions workflow. CodeQL is a robust security and code analysis tool designed to identify vulnerabilities and maintain high-quality code standards.

Over the next few weeks, I’ll analyze how CodeQL compares to other similar tools, evaluating its impact on our development process, code quality, and overall team efficiency.

@pdurbin
Copy link
Member

pdurbin commented Mar 18, 2025

@carlsonp any idea why this PR is failing? 🤔

Screenshot 2025-03-18 at 1 09 54 PM

@qqmyers
Copy link
Member

qqmyers commented Mar 18, 2025

Guessing it's the out of date actions - at QDR we have https://github.com/QualitativeDataRepository/dataverse/blob/develop/.github/workflows/codeql-analysis.yml which has new versions of all the github actions involved. We also have Java, JavaScript and Python as languages, versus just Java.

@scolapasta scolapasta assigned pdurbin and unassigned carlsonp Mar 19, 2025
@github-advanced-security
Copy link

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.

@pdurbin
Copy link
Member

pdurbin commented Mar 19, 2025

I went through the wizard at https://github.com/IQSS/dataverse/new/develop?filename=.github%2Fworkflows%2Fcodeql.yml&workflow_template=code-scanning%2Fcodeql and then copied and pasted it into the YAML for this PR in 793c3ee.

Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

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

I believe this is ready to merge now.

@pdurbin pdurbin removed their assignment Mar 19, 2025
@ofahimIQSS
Copy link
Contributor

Im wondering how we can handle/proceed with the code scanning results: https://github.com/IQSS/dataverse/security/code-scanning?page=1&query=pr%3A9252+tool%3ACodeQL+is%3Aopen+sort%3Acreated-desc
numbers 302 to 162

@ofahimIQSS
Copy link
Contributor

Noticed that continuous-integration/jenkins/pr-merge failed - rerunning it now.

@pdurbin
Copy link
Member

pdurbin commented Mar 19, 2025

The branch was 3231 commits behind. 😅

I just merged the latest from develop into it.

@ofahimIQSS ofahimIQSS self-assigned this Mar 19, 2025
@ofahimIQSS
Copy link
Contributor

Looks good, merging PR

@ofahimIQSS ofahimIQSS merged commit 5eb709b into IQSS:develop Mar 19, 2025
7 checks passed
@ofahimIQSS ofahimIQSS removed their assignment Mar 19, 2025
@pdurbin pdurbin added this to the 6.7 milestone Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: 10 A percentage of a sprint. 7 hours. Type: Feature a feature request
Projects
Status: Done 🧹
Development

Successfully merging this pull request may close these issues.

7 participants