Skip to content

chore: lint scripts and CI workflow#65

Merged
legoktm merged 5 commits intomainfrom
63-lint
May 13, 2025
Merged

chore: lint scripts and CI workflow#65
legoktm merged 5 commits intomainfrom
63-lint

Conversation

@cfm
Copy link
Member

@cfm cfm commented May 13, 2025

Closes #63 by:

  1. linting the Python scripts here using Ruff;
  2. linting the GitHub Actions workflow here using zizmor;
  3. fixing the errors flagged in (1) and (2)—see individual commits; and
  4. enforcing the above in CI.

@cfm cfm added this to SecureDrop May 13, 2025
@cfm cfm moved this to Ready For Review in SecureDrop May 13, 2025
Copy link
Member

@legoktm legoktm left a comment

Choose a reason for hiding this comment

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

Yayyy. Comments are minor, primarily that we can rely on /bin/ being a symlink to /usr/bin/ in bookworm, so the old paths are perfectly fine to keep using.

@legoktm legoktm moved this from Ready For Review to Under Review in SecureDrop May 13, 2025
@legoktm
Copy link
Member

legoktm commented May 13, 2025

After merging we should ask infra to make CI / lint a required job and enable the merge queue.

@legoktm legoktm self-assigned this May 13, 2025
cfm added 5 commits May 13, 2025 16:00
But move to Debian trixie for a newer python3-poetry.
…ded "/tmp" (Ruff S108)

I looked at refactoring GrsecurityPatch to use
tempfile.TemporaryDirectory() as a context manager, but it's not worth
it when we don't really care about guaranteed cleanup inside the
container.
@cfm cfm requested a review from legoktm May 13, 2025 23:05
@cfm
Copy link
Member Author

cfm commented May 13, 2025

Thanks, @legoktm! All fixed up.

@legoktm legoktm merged commit ce023a0 into main May 13, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from Under Review to Done in SecureDrop May 13, 2025
@legoktm legoktm deleted the 63-lint branch May 13, 2025 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

lint scripts in CI

2 participants