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

Adding Security Workflows to GitHub Actions (1/2): codeql workflow #1428

Merged
merged 4 commits into from Jan 6, 2021

Conversation

AzfaarQureshi
Copy link
Contributor

@AzfaarQureshi AzfaarQureshi commented Dec 30, 2020

Motivation

Follow up to issue open-telemetry/oteps#144

CodeQL is GitHub's static analysis engine which scans repos for security vulnerabilities. As the project grows and we near GA it might be useful to have a workflow which checks for security vulnerabilities with every PR so we can ensure every incremental change is following best development practices. Also passing basic security checks will also make sure that there aren't any glaring issues for our users.

Changes

  • This PR adds CodeQL security checks to the repo
  • After every run the workflow uploads the results to GitHub. Details on the run and security alerts will show up in the security tab of this repo.

Workflow Triggers

  • daily cron job at 1:30am
  • workflow_dispatch (in case maintainers want to trigger a security check manually)

cc- @alolita

@MrAlias
Copy link
Contributor

MrAlias commented Jan 6, 2021

@AzfaarQureshi can you rebase with master? This looks ready to merge.

@AzfaarQureshi
Copy link
Contributor Author

@MrAlias rebased!

just a quick question, do you want codeql to run on every PR as well or just once daily via the cron job? I just realized that the description is outdated from back when I had the PR trigger as well but I removed it cause I thought it would be too frequent. What are your thoughts?

@MrAlias
Copy link
Contributor

MrAlias commented Jan 6, 2021

@MrAlias rebased!

Thanks 😄

just a quick question, do you want codeql to run on every PR as well or just once daily via the cron job? I just realized that the description is outdated from back when I had the PR trigger as well but I removed it cause I thought it would be too frequent. What are your thoughts?

Triggering on every PR seems too frequent to me as well. The cron job (and a manual run) seems sufficient to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants