rusackas opened a new pull request, #44002: URL: https://github.com/apache/superset/pull/44002
### SUMMARY Resolves code-scanning alert #2660 ([zizmor/self-repository](https://github.com/apache/superset/security/code-scanning/2660)) on `.github/workflows/superset-python-integrationtest.yml:215`. The `Install dependencies` step in the `test-sqlite` job references `.github/actions/cached-dependencies` via the workspace-relative `uses: ./...` syntax, which zizmor's `self-repository` audit flags in favor of the newer `uses: $/...` syntax. The mechanical fix doesn't apply here: `cached-dependencies` is a git submodule (see `.gitmodules`), and `$/...` resolves action files directly from the repository tree without performing a real, submodule-aware checkout, so it can't see past the submodule's gitlink into the actual `action.yml`. This mirrors the same documented false-positive pattern already used for this action elsewhere in the repo (e.g. #43996 for the sibling `Start Celery worker` step in the same job, `superset-translations.yml`, `superset-python-presto-hive.yml`), using the same explanatory comment and the same `# zizmor: ignore[self-repository]` trailing-comment placement (required because zizmor's comment-placement rule for this audit needs the suppression to fall within the flagged `uses:` value's span). Only this one occurrence (line 215, alert #2660) is touched; the file's other `self-repository` findings (alerts #2652–#2659, #2661) are tracked as separate, already-open alerts/PRs and are out of scope for this PR. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF N/A — CI workflow YAML only, no UI change. ### TESTING INSTRUCTIONS - `zizmor .github/workflows/superset-python-integrationtest.yml` (v1.30.0, matching the version pinned in `.pre-commit-config.yaml`) no longer reports a `self-repository` finding for the `Install dependencies` step (now shows as ignored instead of a live finding). - `pre-commit run --files .github/workflows/superset-python-integrationtest.yml` passes, including the `zizmor` hook. - Workflow runtime behavior is unchanged; only a trailing comment was added. ### ADDITIONAL INFORMATION - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] Introduces new feature or API - [ ] Removes existing feature or API Resolves code-scanning alert #2660 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
