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 — Add commit sha to database upload by norascheuch · Pull Request #1922 · github/codeql-action

Conversation

@norascheuch

@norascheuch norascheuch commented Oct 5, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Merge / deployment checklist

This PR adds the commit_oid to the database upload, so that users know - when using the database later - which version of the code it is based on.

  • 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
@norascheuch
Add commit sha to database upload
1727de3
@norascheuch
norascheuch requested a review from a team as a code owner October 5, 2023 09:52
@norascheuch
norascheuch requested a review from robertbrignull October 5, 2023 09:52
@norascheuch
Use getCommitOid to get the id
075eb6a
robertbrignull
robertbrignull reviewed Oct 5, 2023
View reviewed changes
Comment thread src/database-upload.ts Outdated
);
try {
await client.request(
`POST https://uploads.github.com/repos/:owner/:repo/code-scanning/codeql/databases/:language?name=:name`,

@robertbrignull robertbrignull Oct 5, 2023

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.

Suggested change
`POST https://uploads.github.com/repos/:owner/:repo/code-scanning/codeql/databases/:language?name=:name`,
`POST https://uploads.github.com/repos/:owner/:repo/code-scanning/codeql/databases/:language?name=:name&commit_oid=:commit_oid`,

Oops, I missed we'll need to include commit_oid here so that it knows how to include it when making the HTTP request. The body of the request is just the database contents, so the commit oid needs to be included as a URL param.

Sorry, something went wrong.

Uh oh!

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

All reactions

@norascheuch norascheuch Oct 6, 2023

Copy link
Copy Markdown
Contributor Author

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.

lol makes sense 🤦‍♀️

Sorry, something went wrong.

Uh oh!

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

All reactions
@norascheuch
Add commit id to params
aed2e7f
@norascheuch
norascheuch force-pushed the nora/add-commit-sha-to-database-upload branch from 1677e55 to aed2e7f Compare October 6, 2023 13:16
aeisenberg
aeisenberg previously approved these changes Oct 6, 2023
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.

LGTM

Sorry, something went wrong.

Uh oh!

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

All reactions
@norascheuch
Await commitOid
8193a92
@norascheuch
norascheuch dismissed aeisenberg’s stale review via 3d409d1 October 9, 2023 07:50
@norascheuch
norascheuch requested a review from robertbrignull October 9, 2023 07:51
@norascheuch
norascheuch force-pushed the nora/add-commit-sha-to-database-upload branch from 3d409d1 to 7273335 Compare October 9, 2023 09:23
@norascheuch
Add new param to test
e62d946
@norascheuch
norascheuch force-pushed the nora/add-commit-sha-to-database-upload branch from 7273335 to e62d946 Compare October 10, 2023 08:48
@robertbrignull

robertbrignull commented Oct 10, 2023

Copy link
Copy Markdown
Contributor

Code LGTM, but this shouldn't be merged until we've merged the API change and then tested this PR.

All reactions

Sorry, something went wrong.

Uh oh!

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

robertbrignull
robertbrignull approved these changes Oct 12, 2023
View reviewed changes
@norascheuch
norascheuch merged commit b584cf8 into main Oct 12, 2023
@norascheuch
norascheuch deleted the nora/add-commit-sha-to-database-upload branch October 12, 2023 15:50
@github-actions github-actions Bot mentioned this pull request Oct 13, 2023
Merge main into releases/v2 #1947
Merged
6 tasks
@coderabbitai coderabbitai Bot mentioned this pull request May 1, 2026
feat(portage): add nvms runtime provider KooshaPari/Portage#421
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@robertbrignull robertbrignull robertbrignull approved these changes
@aeisenberg aeisenberg aeisenberg left review comments

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

@norascheuch @robertbrignull @aeisenberg
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.