| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Warning
This PR introduces a new repository property (github-codeql-config-file) that can provide the CodeQL configuration file location when no explicit config-file workflow input is set, with the workflow input taking precedence. It wires this selection into the init action and adds unit tests around property loading and the selection logic.
Changes:
| File | Description |
|---|---|
| src/actions-util.ts | Adds an ActionsEnv abstraction and getActionsEnv() to avoid stubbing globals in tests. |
| src/init-action.ts | Uses repository properties + getConfigFileInput() to determine configFile instead of reading the input directly. |
| src/feature-flags/properties.ts | Adds the new github-codeql-config-file repository property to the known/parsed property set. |
| src/feature-flags/properties.test.ts | Extends coverage to ensure the new property is loaded and returned from the API response. |
| src/config/file.ts | New helper for resolving the effective config file from workflow input vs repository property. |
| src/config/file.test.ts | Adds unit tests validating precedence and logging for config file resolution. |
| src/testing-utils.ts | Adds a helper to construct an ActionsEnv for tests. |
| lib/entry-points.js | Excluded from diff (generated/contents unavailable per policy). |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with one minor comment/question.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR is the first in a series of changes which will add the ability to point the CodeQL Action at a configuration file using a repository property.
This PR adds the new repository property and uses its value, if provided and no explicit config-file input is provided for the CodeQL Action in the workflow. In other words, the config-file input has priority over the value of the repository property.
Risk assessment
For internal use only. Please select the risk level of this change:
Which use cases does this change impact?
Workflow types:
Products:
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