Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security scanning zizmor (infra) #1668

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

Hook25
Copy link
Collaborator

@Hook25 Hook25 commented Dec 20, 2024

Description

This creates a new workflow to do sistematic vulnerability scanning of our PRs. This is not a silver bullet, as it will be ran only when new workflows are introduced or old ones are modified but its a good start.

This also adjusts all "problems" found by the tool so that it passes all the times now namely:

  • checkout action -> do not persist token, we never pass the token implicitly around and this is an anti feature, disabled
  • codecov action -> updated and mitigated a problem (codecov has a branch called v3, so we shouldn't use that reference because we trust an un-restricted branch that way)

Resolved issues

Fixes: CHECKBOX-1706

Documentation

N/A

Tests

Tested tox action to check that the new codecov action works: https://github.com/canonical/checkbox/actions/runs/12431986975

Minor: Fix checkbox->Checkbox
This was done in response to a vulnerability:
codecov has a branch that is v3 and a tag, so any commit
to the v3 branch can steal the token potentially
@Hook25 Hook25 requested review from a team as code owners December 20, 2024 13:16
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.99%. Comparing base (4305ba1) to head (bb5ee97).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1668   +/-   ##
=======================================
  Coverage   48.99%   48.99%           
=======================================
  Files         372      372           
  Lines       40321    40321           
  Branches     6811     6811           
=======================================
  Hits        19757    19757           
  Misses      19842    19842           
  Partials      722      722           
Flag Coverage Δ
checkbox-ng 69.39% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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