Skip to content

Remove codeQl keys from add-ons metadata#10164

Open
nvdaes wants to merge 12 commits into
nvaccess:masterfrom
nvdaes:removeCodeQl
Open

Remove codeQl keys from add-ons metadata#10164
nvdaes wants to merge 12 commits into
nvaccess:masterfrom
nvdaes:removeCodeQl

Conversation

@nvdaes

@nvdaes nvdaes commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

Related issue

Fixes #9727

Development approach

Added an sh script and a GitHub workflow to remove codeQl-warnings and codeQl-errors, which according to Copilot may be writen in different ways, from add-ons metadata.

Tests

https://github.com/nvdaes/addon-datastore/actions/runs/29154980713

Copilot AI review requested due to automatic review settings July 11, 2026 13:05
@nvdaes nvdaes requested a review from a team as a code owner July 11, 2026 13:05
@nvdaes nvdaes requested review from seanbudd and removed request for a team July 11, 2026 13:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces an automated cleanup to remove legacy CodeQL-related keys from add-on metadata JSON files, and adds a GitHub Actions workflow intended to run that cleanup and commit the result.

Changes:

  • Added a Bash script that scans addons/**.json and removes legacy codeQL-* keys via jq.
  • Added a GitHub Actions workflow to run the script and push any resulting updates back to the repository.

Reviewed changes

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

File Description
remove-codeql-keys.sh Adds a jq-based cleanup script to remove legacy CodeQL metadata keys from JSON files under addons/.
.github/workflows/removeCodeQl.yml Adds a workflow intended to run the cleanup script and commit/push any changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +27 to +36
- name: Remove codeQl keys from add-ons metadata
run: |
./remove-codeql-keys.sh
git add addons
if ! git diff --cached --quiet; then
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git commit -m "Remove CodeQL keys from add-ons metadata"
git push
fi
Comment thread remove-codeql-keys.sh
Comment on lines +26 to +32
# Remove legacy keys that are no longer used, regardless of where they appear.
jq 'del(
.. | .["codeQL-warnings"]?,
.. | .["codeQL-errors"]?,
.. | .["codeQl-warnings"]?,
.. | .["codeQlErrors"]?
)' "$file" > "$tmp_file"
@nvdaes

nvdaes commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator Author

I used a GitHub workflow (GitHub Actions), so that the process can be seen. I don't have native Linux nor jq installed on my computer.
NV Access can reuse the provided remove-codeql-keys.sh, created with help of Copilot and reviewed by me, if it's useful.
I think this is ready for review, and after merging this PR, may be good to normalize json files when appropriate..

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove codeQL data from add-on metadata

3 participants