[BUG] Misleading ERROR message for pip-audit scan

Open
#80 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
ci-cd, security

Research direction

Start by reproducing the audit:deps:python scan with the provided Pipfile and GitHub dependency on macOS. Trace how the CDK CI/CD wrapper handles pip-audit output when the scan exits with code 0; done means the successful scan no longer prints the missing-hash message as an error.

Written by the indexing model from the issue text.

Description

bug
Describe the bug

I have a Pipfile that installs a package from Github. When I run the audit:deps:python scan, it returns an error saying that this requirement does not contain a hash, even though the scan itself exited with code 0.

Screenshot 2024-07-23 at 20 04 26

Expected Behavior

This should not be shown as an error as it could be misleading.

Current Behavior

Even though the scan itself is successful, this error message is still printed.

Reproduction Steps

Pipfile
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
chronos = { git = "https://github.com/amazon-science/chronos-forecasting.git", ref = "main" }

[dev-packages]

[requires]
python_version = "3.11"

Possible Solution

No response

Additional Information/Context

No response

CDK CI/CD Wrapper version used

0.2.3

Environment details (OS name and version, etc.)

macOS 14.3.1

Dominant language
TypeScript
Stars
33
Forks
9
Avg merge
14h 32m
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cdklabs/cdk-cicd-wrapper

All issues in cdklabs/cdk-cicd-wrapper

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.