Skip to content

ci: update all GitHub Actions off Node.js 20, run Bandit directly - #43

Open
jthDEV wants to merge 3 commits into
mainfrom
ci/actions-node24
Open

jthDEV wants to merge 3 commits into
mainfrom
ci/actions-node24

Conversation

@jthDEV

@jthDEV jthDEV commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Why

The runs warn that Node.js 20 is deprecated (actions forced onto Node 24) and that CodeQL Action v3 is deprecated in December 2026. Rule: no Node 20 actions.

Changes

Action Before After Runtime
actions/checkout v4 / v5 / v4.1.1 (SHA) v7 / v7.0.1 (SHA) node24
actions/setup-python v5 v7 node24
actions/configure-pages v5 v6 node24
actions/upload-pages-artifact v4 v5 composite
actions/deploy-pages v4 v5 node24
actions/upload-artifact v4.6.0 (SHA) v7.0.2 (SHA) node24
docker/setup-buildx-action v3 v4 node24
docker/login-action v3 v4 node24
docker/build-push-action v5 v7 node24
ossf/scorecard-action v2.3.1 (SHA) v2.5.0 (SHA) docker
github/codeql-action/upload-sarif v3.28.9 (SHA) v4.39.3 (SHA) node24
  • Bandit no longer uses shundor/python-bandit-scan: it pulled actions/upload-artifact@main (unpinned — supply-chain risk) and codeql-action/upload-sarif@v2/v3. The workflow now installs bandit[sarif]==1.9.4, scans with -x ./tests and uploads with upload-sarif@v4. Tool name ("Bandit") and default category are unchanged, so existing alerts are continued. Locally: 31 results, none in tests/.
  • Dependabot: new github-actions ecosystem (monthly). examples/ is documented as test fixtures; Dependabot alerts first prototype #3 (phpunit) and Try to retrieve more details for Maven dependencies #4 (Snappier) there were dismissed as "not used".
  • pypa/gh-action-pypi-publish@release/v1 and TrustSource/ts-scan-action@v1 are composite/docker actions and unaffected.

Verification

  • YAML of all workflows parses.
  • Bandit and Dependencies Scan run on this PR.
  • ⚠️ buildnPush.yml (tag), ci.yml (push to main) and scorecard.yml (schedule/push) only run after merge or on release; check their first runs.

Note

bandit.yml also changes in #42 (excluded_paths: ./tests); whichever is merged second needs a trivial conflict resolution in favour of this version.

🤖 Generated with Claude Code

- actions/checkout v7, setup-python v7, configure-pages v6,
  upload-pages-artifact v5, deploy-pages v5, upload-artifact v7.0.2,
  docker/setup-buildx-action v4, login-action v4, build-push-action v7,
  ossf/scorecard-action v2.5.0, codeql-action/upload-sarif v4.39.3
  (SHA pins kept in scorecard.yml)
- Bandit: replace shundor/python-bandit-scan, which pulled
  actions/upload-artifact@main unpinned and codeql-action v2/v3, with
  `bandit[sarif]==1.9.4` and upload-sarif v4; tests excluded via
  `-x ./tests`; same tool name and category, so existing alerts carry on
- Dependabot: add the github-actions ecosystem; document examples/ as
  test fixtures whose alerts are dismissed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jthDEV
jthDEV requested review from FFfFRA and pbrQA-eacg and removed request for FFfFRA and pbrQA-eacg November 6, 2026 21:19
jthDEV and others added 2 commits November 6, 2026 23:49
Every workflow action now references a full commit SHA with its version as a
comment; Dependabot (github-actions ecosystem) keeps the pins current.

BREAKING CHANGE: requires-python is raised to >=3.12; Python 3.10 and 3.11 are
no longer supported. The Docker image already runs Python 3.12.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds a pytest workflow on the base installation. It exposed that
'analyse --disable-scanoss' imported SCANOSS unconditionally; it is now
imported only when used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant