| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR tightens handling of the experimental analysis-kinds input by disallowing multiple enabled analysis kinds in normal (non-test) runs, with an escape hatch via a new feature flag for internal/testing environments. This reduces maintenance burden ahead of planned removal of multi-kind support.
Changes:
| File | Description |
|---|---|
| src/init-action.ts | Wires features through to getAnalysisKinds calls. |
| src/feature-flags.ts | Adds new AllowMultipleAnalysisKinds feature flag and config (default disabled). |
| src/analyses.ts | Enforces single analysis kind outside test mode unless the new feature flag is enabled. |
| src/analyses.test.ts | Updates tests for new getAnalysisKinds signature and adds coverage for the new error. |
| lib/upload-sarif-action.js | Generated JS updated to reflect TS changes. |
| lib/upload-sarif-action-post.js | Generated JS updated to reflect TS changes. |
| lib/upload-lib.js | Generated JS updated to reflect TS changes. |
| lib/start-proxy-action.js | Generated JS updated to reflect TS changes. |
| lib/start-proxy-action-post.js | Generated JS updated to reflect TS changes. |
| lib/setup-codeql-action.js | Generated JS updated to reflect TS changes. |
| lib/resolve-environment-action.js | Generated JS updated to reflect TS changes. |
| lib/init-action-post.js | Generated JS updated to reflect TS changes. |
| lib/autobuild-action.js | Generated JS updated to reflect TS changes. |
| lib/analyze-action.js | Generated JS updated to reflect TS changes. |
| lib/analyze-action-post.js | Generated JS updated to reflect TS changes. |
Sorry, something went wrong.
There was a problem hiding this comment.
How about instead treating multiple inputs as just code-scanning instead? If we want to make it an error, I'd suggest we allow a month's deprecation period and in the meantime logging a warning that this will be treated as an error in June? I agree this was marked as an internal input in the action.yml but I don't think we can rely on customers reading that.
Sorry, something went wrong.
|
@henrymercer I had to resolve some merge conflicts, can you re-approve? Note that there is one tiny code change in the merge commit at 4dc7276#diff-03d2b2bd0e1c4d4ed0fd6ddac8033710b48fb01370983c27b17b3cab5ea0a8ba since your merged PR introduced an extra call to getAnalysisKinds whose signature is changing in this PR. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The analysis-kinds input is experimental and for GitHub-internal use only. We provide no support for this input or its functionality.
We stopped using multiple analysis kinds per job months ago and intend to remove support for it entirely to reduce maintenance overheads and code complexity.
This PR logs an error if multiple analysis kinds are requested at the same time outside of our testing environments and only enables code-scanning. Full removal of the related code will follow at a future point.
Risk assessment
For internal use only. Please select the risk level of this change:
Which use cases does this change impact?
Workflow types:
Managed workflows do not specify multiple inputs for analysis-kinds and advanced setup is unsupported.
Products:
N/A
Environments:
How did/will you validate this change?
If something goes wrong after this change is released, what are the mitigation and rollback strategies?
How will you know if something goes wrong after this change is released?
Are there any special considerations for merging or releasing this change?
Merge / deployment checklist