GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Upload CodeQL databases by robertbrignull · Pull Request #573 · github/codeql-action

Conversation

@robertbrignull

@robertbrignull robertbrignull commented Jun 18, 2021

Copy link
Copy Markdown
Contributor

This adds the ability to upload the CodeQL database to github. These databases will be stored and can then be downloaded by users for running queries against. Currently though this feature is still in development and access will be restricted to github staff.

Most of this work has already been semi-reviewed on the upload-database branch, but it'll likely want a proper review now that we're going into the main branch. Also pay special attention to anything that could make this break for GHES/GHAE users using github connect.

I've also added one more commit which adds an input to allow disabling this new behaviour. Although the upload only happens on github.com and only for repositories that are opted in to the new feature, I expect we'll still get requests for a way for users to disable this.

@aeisenberg, does this need a changelog entry? We do add a new input, but also for all regular users behaviour won't be changing either way because their repositories won't be opted in to the new feature. When we roll this out it won't be correlated with any particular codeql-action version.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
robertbrignull and others added 10 commits June 10, 2021 16:09
@robertbrignull
Upload databases from analyze action
2a9a602
@rneatherway
Update cleanup to bundle
4294711
@robertbrignull
Check if on default branch before uploading database
d693b3c
@robertbrignull
Merge pull request #563 from github/robertbrignull/check_default_branch
366b68e
Check if on default branch before uploading database
@robertbrignull
Provide a better error message
c989ee7
@robertbrignull
Only attempt to upload on dotcom
b985a67
@robertbrignull
Merge pull request #564 from github/robertbrignull/workflow_event_error
6fc1280
Provide a better error message
@robertbrignull
Merge pull request #565 from github/robertbrignull/upload_ghes
69c30da
Only attempt to upload on dotcom
@robertbrignull
Merge branch 'main' into upload-database
33ac512
@robertbrignull
Add workflow input to disable uploads
f3cd5fa
@robertbrignull
robertbrignull requested a review from a team as a code owner June 18, 2021 09:04
rneatherway
rneatherway approved these changes Jun 18, 2021
View reviewed changes

@rneatherway rneatherway left a comment

Copy link
Copy Markdown
Contributor

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.

Agreed we should wait for @aeisenberg to take a look. My feeling is that we don't need a changelog here because this isn't ready for end users yet.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
aeisenberg
aeisenberg approved these changes Jun 18, 2021
View reviewed changes

@aeisenberg aeisenberg left a comment

Copy link
Copy Markdown
Contributor

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.

Looks fine to me. I'm leaning against a changelog as well. This is not a user facing feature (yet).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@aeisenberg

aeisenberg commented Jun 18, 2021

Copy link
Copy Markdown
Contributor

When query console becomes available to external users, we should add an entry.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@robertbrignull
robertbrignull merged commit f6d1bad into main Jun 21, 2021
@robertbrignull
robertbrignull deleted the upload-database branch June 21, 2021 07:45
@github-actions github-actions Bot mentioned this pull request Jun 21, 2021
Merge main into v1 #574
Closed
5 tasks
This was referenced Jun 21, 2021
Revert "Upload CodeQL databases" #577
Merged
Upload CodeQL databases - mk2 #578
Merged
@github-actions github-actions Bot mentioned this pull request Jun 23, 2021
Merge main into v1 #585
Merged
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aeisenberg aeisenberg aeisenberg approved these changes
+1 more reviewer
@rneatherway rneatherway rneatherway approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@robertbrignull @aeisenberg @rneatherway
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.