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 — Adds ref and SHA as inputs, and sarif-id as output by cw-alexcroteau · Pull Request #889 · github/codeql-action

Adds ref and SHA as inputs, and sarif-id as output #889

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.

Sign up for GitHub

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

Closed
cw-alexcroteau wants to merge 12 commits into github:aeisenberg/permissions from cw-alexcroteau:add-ref-input

Uh oh!

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

Closed

Adds ref and SHA as inputs, and sarif-id as output #889

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
12 commits
Select commit Hold shift + click to select a range
e9aa2c6
Add a permissions block for generated workflows
aeisenberg Feb 1, 2022
980fd4e
Adds ref and SHA as inputs, and sarif-id as output
cw-alexcroteau Jan 24, 2022
0dd4dbf
Apply documentation suggestions from code review
cw-alexcroteau Jan 25, 2022
5916f98
Applies recomendation in upload-sarif/action.yml
cw-alexcroteau Jan 25, 2022
1eaaf07
Adds check on inputs and compiled files
cw-alexcroteau Jan 26, 2022
1bfa9ac
Adds integration test and fixes linting
cw-alexcroteau Jan 26, 2022
260b4d5
Fixes integration test
cw-alexcroteau Jan 26, 2022
3cc8799
Updates javascript files
cw-alexcroteau Jan 26, 2022
63d0c78
Fixes integration tests referred repo
cw-alexcroteau Jan 26, 2022
dfe2bc4
Changes to commit hash in main branch
cw-alexcroteau Jan 26, 2022
9f36b75
Splits integration tests
cw-alexcroteau Jan 26, 2022
72f9a88
Regenerates test workflows
cw-alexcroteau Feb 1, 2022
File filter
Filter by extension


Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

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

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

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

Diff view
Diff view

There are no files selected for viewing

65 changes: 65 additions & 0 deletions 65 .github/workflows/__analyze-ref-input.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__debug-artifacts.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__extractor-ram-threads.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__go-custom-queries.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__go-custom-tracing-autobuild.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__go-custom-tracing.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__javascript-source-root.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__multi-language-autodetect.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__packaging-config-inputs-js.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__packaging-config-js.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__packaging-inputs-js.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

4 changes: 3 additions & 1 deletion 4 .github/workflows/__remote-config.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__rubocop-multi-language.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__split-workflow.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__test-local-codeql.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__test-proxy.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__test-ruby.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

2 changes: 2 additions & 0 deletions 2 .github/workflows/__unset-environment.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

72 changes: 72 additions & 0 deletions 72 .github/workflows/__upload-ref-sha-input.yml
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

5 changes: 4 additions & 1 deletion 5 CHANGELOG.md
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

## [UNRELEASED]

No user facing changes.
- Add sarif-id as an output for upload-sarif action and analyze action (if uploading)
Comment thread
cw-alexcroteau marked this conversation as resolved.
Resolved

Uh oh!

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

- Accept ref and hash as inputs to override the ones provided by the runner
Comment thread
cw-alexcroteau marked this conversation as resolved.
Resolved

Uh oh!

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


## 1.0.31 - 31 Jan 2022

- Add `sarif-id` as an output for the `upload-sarif` and `analyze` actions. [#889](https://github.com/github/codeql-action/pull/889)
- Add `ref` and `sha` inputs to the `analyze` action, which override the defaults provided by the GitHub Action context. [#889](https://github.com/github/codeql-action/pull/889)
- Remove `experimental` message when using custom CodeQL packages. [#888](https://github.com/github/codeql-action/pull/888)
- Add a better warning message stating that experimental features will be disabled if the workflow has been triggered by a pull request from a fork or the `security-events: write` permission is not present. [#882](https://github.com/github/codeql-action/pull/882)

Expand Down
8 changes: 8 additions & 0 deletions 8 analyze/action.yml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ inputs:
description: "The path at which the analyzed repository was checked out. Used to relativize any absolute paths in the uploaded SARIF file."
required: false
default: ${{ github.workspace }}
ref:
description: "The ref where results will be uploaded. If not provided, the Action will use the GITHUB_REF environment variable. If provided, the sha input must be provided as well."
required: false
sha:
description: "The sha of the HEAD of the ref where results will be uploaded. If not provided, the Action will use the GITHUB_SHA environment variable. If provided, the ref input must be provided as well."
required: false
category:
description: String used by Code Scanning for matching the analyses
required: false
Expand All @@ -63,6 +69,8 @@ inputs:
outputs:
db-locations:
description: A map from language to absolute path for each database created by CodeQL.
sarif-id:
description: The ID of the uploaded SARIF file.
runs:
using: "node12"
main: "../lib/analyze-action.js"
27 changes: 20 additions & 7 deletions 27 lib/actions-util.js
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

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

Loading
Oops, something went wrong.

Uh oh!

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

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.