Skip to content

Use new feature flag for repository properties#3492

Open
henrymercer wants to merge 1 commit intomainfrom
henrymercer/new-repository-properties-ff
Open

Use new feature flag for repository properties#3492
henrymercer wants to merge 1 commit intomainfrom
henrymercer/new-repository-properties-ff

Conversation

@henrymercer
Copy link
Contributor

Append v2 to the repository properties FF, so we can roll out repository properties only to CodeQL Action versions with the improved error handling introduced in #3421.

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Which use cases does this change impact?

Workflow types:

  • Advanced setup - Impacts users who have custom CodeQL workflows.
  • Managed - Impacts users with dynamic workflows (Default Setup, CCR, ...).

Products:

  • Code Scanning - The changes impact analyses when analysis-kinds: code-scanning.

Environments:

  • Dotcom - Impacts CodeQL workflows on github.com and/or GitHub Enterprise Cloud with Data Residency.

How did/will you validate this change?

  • None - I am not validating these changes.

If something goes wrong after this change is released, what are the mitigation and rollback strategies?

  • Feature flags - All new or changed code paths can be fully disabled with corresponding feature flags.

How will you know if something goes wrong after this change is released?

  • Telemetry - I rely on existing telemetry or have made changes to the telemetry.
    • Alerts - New or existing monitors will trip if something goes wrong with this change.

Are there any special considerations for merging or releasing this change?

  • No special considerations - This change can be merged at any time.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

Copilot AI review requested due to automatic review settings February 19, 2026 18:33
@henrymercer henrymercer requested a review from a team as a code owner February 19, 2026 18:33
@github-actions github-actions bot added the size/XS Should be very easy to review label Feb 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the feature flag for repository properties from use_repository_properties to use_repository_properties_v2. This change allows the feature to be rolled out exclusively to CodeQL Action versions that include the improved error handling introduced in PR #3421. The feature flag name change is a versioning strategy to ensure only newer Action versions with better error tolerance will be able to enable the repository properties feature.

Changes:

  • Updated the Feature enum value from "use_repository_properties" to "use_repository_properties_v2" in the TypeScript source
  • Maintained backward compatibility by keeping the enum name UseRepositoryProperties and environment variable CODEQL_ACTION_USE_REPOSITORY_PROPERTIES unchanged
  • Generated JavaScript files in lib/ directory reflect the TypeScript changes

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/feature-flags.ts Updated Feature.UseRepositoryProperties enum value to use v2 suffix
lib/upload-sarif-action.js Generated JavaScript reflecting the feature flag update
lib/upload-sarif-action-post.js Generated JavaScript reflecting the feature flag update
lib/upload-lib.js Generated JavaScript reflecting the feature flag update
lib/start-proxy-action.js Generated JavaScript reflecting the feature flag update
lib/start-proxy-action-post.js Generated JavaScript reflecting the feature flag update
lib/setup-codeql-action.js Generated JavaScript reflecting the feature flag update
lib/resolve-environment-action.js Generated JavaScript reflecting the feature flag update
lib/init-action.js Generated JavaScript reflecting the feature flag update, including usage in loadRepositoryProperties function
lib/init-action-post.js Generated JavaScript reflecting the feature flag update
lib/autobuild-action.js Generated JavaScript reflecting the feature flag update
lib/analyze-action.js Generated JavaScript reflecting the feature flag update
lib/analyze-action-post.js Generated JavaScript reflecting the feature flag update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Should be very easy to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments