chore: harden all GitHub workflows using zizmor#1054
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Coverage variation | ✅ +0.00% coverage variation (-1.00%) |
| Diff coverage | ✅ ∅ diff coverage (80.00%) |
Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (3d97dee) 1152 1117 96.96% Head commit (42d8b4b) 1152 (+0) 1117 (+0) 96.96% (+0.00%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>
Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#1054) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Agent-Logs-Url: https://github.com/CycloneDX/cyclonedx-python/sessions/f1c5d1ea-912f-4afc-a9a4-e6a6f74f6a57 Co-authored-by: jkowalleck <2765863+jkowalleck@users.noreply.github.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
@copilot zizmor reports some findings. fix them . |
…indings Agent-Logs-Url: https://github.com/CycloneDX/cyclonedx-python/sessions/ddd8d7f8-99fe-41e7-8d6a-4b4b44e7a9a1 Co-authored-by: jkowalleck <2765863+jkowalleck@users.noreply.github.com>
... Fixed in 42d8b4b. Added Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Adds automated GitHub Actions security analysis via
zizmorand addresses all findings it surfaces in the existing workflows and Dependabot configuration.New workflow:
.github/workflows/zizmor.ymlpull_request(path-filtered to.github/workflows/**and.github/dependabot.yml) and weekly schedule (0 0 * * 6)pushfor the same pathsannotations: true,advanced-security: false)contents: readonlyFindings fixed:
artipacked(credential persistence via artifacts)All
actions/checkoutsteps across three workflows were missingpersist-credentials: false, allowing tokens to persist into artifacts. Fixed in:.github/workflows/docker.yml— 1 step.github/workflows/python.yml— 7 steps.github/workflows/release.yml— 4 stepsFindings fixed:
dependabot-cooldown(insufficient cooldown in Dependabot updates)All three ecosystems in
.github/dependabot.ymlwere missing acooldownconfiguration. Addedcooldown: default-days: 7to each:github-actionsdockerpipAfter these fixes,
zizmorreports zero findings across all workflows and configuration files.AI Tool Disclosure
Affirmation