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 — Update `upload` input values and logic by angelapwen · Pull Request #1598 · github/codeql-action

Conversation

@angelapwen

@angelapwen angelapwen commented Mar 21, 2023 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor
  • The upload input to the analyze Action now accepts the following values:
    • always is the default value, which uploads the SARIF file to Code Scanning for successful and failed runs.
    • failure-only is recommended for customers post-processing the SARIF file before uploading it to Code Scanning. This option uploads debugging information to Code Scanning for failed runs to improve the debugging experience.
    • never avoids uploading the SARIF file to Code Scanning even if the code scanning run fails. This is not recommended for external users since it complicates debugging.
    • The legacy true and false options will be interpreted as always and failure-only respectively.

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
@angelapwen
angelapwen requested a review from a team as a code owner March 21, 2023 23:00
@angelapwen
angelapwen force-pushed the upload-input-values branch from b6df6de to 39f1bc6 Compare March 22, 2023 17:03
henrymercer
henrymercer reviewed Mar 22, 2023
View reviewed changes

@henrymercer henrymercer 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.

Nice!

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread analyze/action.yml Resolved

Uh oh!

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

Comment thread CHANGELOG.md Resolved

Uh oh!

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

Comment thread src/actions-util.ts Resolved

Uh oh!

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

Comment thread src/init-action-post-helper.test.ts Resolved

Uh oh!

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

Comment thread src/init-action-post-helper.test.ts Resolved

Uh oh!

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

Comment thread src/workflow.ts Resolved

Uh oh!

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

henrymercer
henrymercer reviewed Mar 22, 2023
View reviewed changes

@henrymercer henrymercer 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.

Some further changelog improvement suggestions!

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread CHANGELOG.md Resolved

Uh oh!

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

Comment thread analyze/action.yml Resolved

Uh oh!

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

@angelapwen
angelapwen requested a review from henrymercer March 22, 2023 18:52
henrymercer
henrymercer reviewed Mar 22, 2023
View reviewed changes
Comment thread src/actions-util.ts Resolved

Uh oh!

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

Comment thread src/actions-util.ts Resolved

Uh oh!

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

Comment thread src/init-action-post-helper.test.ts Resolved

Uh oh!

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

@angelapwen
angelapwen requested a review from henrymercer March 22, 2023 23:57
henrymercer
henrymercer reviewed Mar 23, 2023
View reviewed changes
Comment thread src/actions-util.ts Resolved

Uh oh!

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

Comment thread src/init-action-post-helper.test.ts Resolved

Uh oh!

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

Comment thread src/actions-util.ts Resolved

Uh oh!

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

@angelapwen
angelapwen requested a review from henrymercer March 23, 2023 16:24
henrymercer
henrymercer previously approved these changes Mar 23, 2023
View reviewed changes

@henrymercer henrymercer 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.

Very nice!

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/actions-util.ts Resolved

Uh oh!

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

@angelapwen
angelapwen dismissed henrymercer’s stale review via 46cf6c6 March 23, 2023 16:50
angelapwen and others added 19 commits March 23, 2023 09:52
@angelapwen
Update upload input description in analyze
9894ad1
@angelapwen
Update failed runs' upload SARIF logic
4052ce5
Previously, failed runs' failed SARIF files were uploaded if the `upload` input was not `true`. Now, the failed SARIF files will be uploaded if the `upload` input was not `always`, `failure-only`, or `true`.
@angelapwen
Update green runs' upload SARIF logic
a99d06f
Previously, we uploaded results from the `analyze` step if the `upload` input was `true`. We now upload results if the `upload` input was set to `true` or `always`.
@angelapwen
Add test cases for failure-only, never, and unrecognized input
452dc6e
@angelapwen
Minor refactoring
cb6d164
@angelapwen
Replace false with never in existing checks
8075d10
@angelapwen
Fall back to always for unrecognized input
7676afe
@angelapwen
Add CHANGELOG entry
fb18766
@angelapwen
Add unit tests for always, true, false cases
04e3995
@angelapwen @henrymercer
Clarify CHANGELOG and Action input description
3270250
Co-authored-by: Henry Mercer <[email protected]>
@angelapwen
Specify upload skips rather than fails in test
7e7bc84
@angelapwen
Refactor relevant into helper method
cde6edb
@angelapwen @henrymercer
Further documentation improvements
2a441e3
Co-authored-by: Henry Mercer <[email protected]>
@angelapwen
Update input description to match existing ones
690a1ab
@angelapwen
Refactor utility function per PR review
13a94c3
@angelapwen
Refactor test cases into loop
4469ee6
@angelapwen
Make getUploadValue synchronous
707a6bb
@angelapwen @henrymercer
Update comment
7929472
Co-authored-by: Henry Mercer <[email protected]>
@angelapwen
Use switch statement
54e08db
@angelapwen
angelapwen force-pushed the upload-input-values branch from 46cf6c6 to 54e08db Compare March 23, 2023 16:53
@angelapwen
angelapwen requested a review from henrymercer March 23, 2023 16:54
henrymercer
henrymercer previously approved these changes Mar 23, 2023
View reviewed changes

@henrymercer henrymercer 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.

:shipit:

Sorry, something went wrong.

Uh oh!

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

All reactions
@angelapwen
angelapwen enabled auto-merge (squash) March 23, 2023 16:56
@angelapwen
Stop awaiting non async function
532e9ec
@angelapwen
angelapwen dismissed henrymercer’s stale review via 532e9ec March 23, 2023 16:59
henrymercer
henrymercer approved these changes Mar 23, 2023
View reviewed changes
@angelapwen
angelapwen merged commit a21bb7f into github:main Mar 23, 2023
@github-actions github-actions Bot mentioned this pull request Mar 27, 2023
Merge main into releases/v2 #1608
Merged
4 of 6 tasks
@angelapwen
angelapwen deleted the upload-input-values branch April 29, 2023 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@henrymercer henrymercer henrymercer approved these changes

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.

2 participants

@angelapwen @henrymercer
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.