Skip to content

Conversation

@orto17
Copy link
Contributor

@orto17 orto17 commented Nov 5, 2025

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.
  • Update documentation about new features / new supported technologies

@orto17 orto17 added the safe to test Approve running integration tests on a pull request label Nov 5, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 5, 2025
@orto17 orto17 added the safe to test Approve running integration tests on a pull request label Nov 6, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 6, 2025
@orto17 orto17 force-pushed the new-transitive-decorator branch from 9466cdb to cba8e0b Compare November 12, 2025 09:10
@orto17 orto17 force-pushed the new-transitive-decorator branch from bb75cf7 to 4e3a1f0 Compare November 13, 2025 07:01
@orto17 orto17 added the safe to test Approve running integration tests on a pull request label Nov 13, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 13, 2025
@orto17 orto17 added the safe to test Approve running integration tests on a pull request label Nov 13, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 13, 2025
@orto17 orto17 added the safe to test Approve running integration tests on a pull request label Nov 13, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 13, 2025
@github-actions
Copy link
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


Copy link
Contributor

@attiasas attiasas left a comment

Choose a reason for hiding this comment

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

Nice work!

  1. fix tests
  2. make sure to validate output before merging

Comment on lines 654 to 667
if len(path) < 2 {
continue
}
// First element is always a direct dependency
first := path[0]
key := fmt.Sprintf("%s:%s", first.Name, first.Version)
directDeps[key] = first

for i := 1; i < len(path)-1; i++ {
component := path[i]
key := fmt.Sprintf("%s:%s", component.Name, component.Version)
transitiveDeps[key] = component
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The first node in the impact path is the scanned component itself. The second one is the direct dependency, check getDirectComponentsAndImpactPaths in security CLI

Copy link
Contributor

Choose a reason for hiding this comment

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

also it means that transitive is: if more than 2 in impact path => the impacted component is transitive

Copy link
Contributor

@attiasas attiasas left a comment

Choose a reason for hiding this comment

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

make sure to validate content by running tests on both types of providers for the content you produce

@orto17 orto17 force-pushed the new-transitive-decorator branch from 14d5703 to 4c32e05 Compare November 13, 2025 11:40
@orto17 orto17 merged commit 42202f6 into jfrog:static-sca-proj Nov 23, 2025
2 of 6 checks passed
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.

3 participants