Skip to content

Commit 7394768

Browse files
authored
Merge branch 'master' into fix/github-data-residency-limitation
2 parents 8ea71fc + 1aa49e9 commit 7394768

3 files changed

Lines changed: 64 additions & 0 deletions

File tree

docs/codacy-cloud-cli/index.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,39 @@ Findings are tracked with statuses like `Overdue`, `OnTrack`, and `DueSoon`. Use
129129
codacy findings gh my-org --statuses Overdue,DueSoon
130130
```
131131

132+
### Check affected functions on vulnerable dependencies {: id="affected-functions"}
133+
134+
For SCA issues and findings linked to an advisory (CVE or GHSA) where Codacy has identified the affected functions, `issues`, `issue`, `findings`, `finding`, and `pull-request` show that information alongside the regular output.
135+
136+
List and card views show a compact summary line:
137+
138+
```bash
139+
codacy issues gh my-org my-repo
140+
```
141+
142+
```
143+
Vulnerable functions: Unmarshal, UnmarshalOptions.Unmarshal (+1 more)
144+
```
145+
146+
Detail views (`codacy issue`, `codacy pull-request ... --issue`, and `codacy finding` when the finding has no linked Codacy issue) show the full block instead:
147+
148+
```bash
149+
codacy issue gh my-org my-repo <issueId>
150+
```
151+
152+
```
153+
Vulnerable Functions (CVE-2024-24786)
154+
Published: 2024-03-08
155+
156+
• Unmarshal
157+
• UnmarshalOptions.Unmarshal
158+
```
159+
160+
This information is also included when using `--output json`.
161+
162+
!!! note
163+
Not every advisory lists specific affected functions — this section only appears when Codacy has identified them.
164+
132165
### Inspect pull requests
133166

134167
```bash
@@ -201,6 +234,19 @@ codacy pull-request gh my-org my-repo 42 --diff
201234

202235
Feed both outputs to Claude Code (with the Codacy skill installed) to decide what to fix and apply it directly.
203236

237+
### Audit affected functions across one or multiple repositories {: id="affected-functions-scale"}
238+
239+
The [affected functions](#affected-functions) shown for a single finding tell you whether one vulnerable dependency is reachable. To check vulnerable dependencies across one or multiple repositories at once, [install the Codacy Skills](#install-the-codacy-skills) — the `codacy-cloud-cli` skill already knows how to pull SCA findings for one or more repositories, tell direct from transitive dependencies apart, and check whether the affected functions are actually used.
240+
241+
With the skill installed and local checkouts of the repositories you want to cover, ask your assistant directly, for example:
242+
243+
```text
244+
Audit vulnerable dependencies in <repo-one> and <repo-two>. For every SCA finding where Codacy has identified affected functions, tell me whether the dependency is direct or transitive, search my local checkout for calls to those functions, and report back per repository — used/not used, chain status, and your recommendation — before ignoring anything as NotExploitable or applying an upgrade.
245+
```
246+
247+
!!! note
248+
Only include repositories you have checked out locally — the assistant can't verify reachability for a repository it can't search. It's also a signal, not a guarantee: review the recommendation before upgrading a dependency or ignoring a finding.
249+
204250
### Use the CLI in CI
205251

206252
The CLI works in any CI environment. Set `CODACY_API_TOKEN` as a secret and install the CLI as a step:
272 KB
Loading

docs/organizations/managing-security-and-risk.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,24 @@ For findings on transitive dependencies, the finding also displays the **depende
105105

106106
![Security and risk management finding dependency chain](images/security-risk-management-finding-dependency-chain.png)
107107

108+
### Affected functions {: id="affected-functions"}
109+
110+
For vulnerable dependency and container scanning findings linked to an advisory (a CVE or a GitHub Security Advisory) where Codacy has identified which functions in the dependency are affected, the finding's **Advisory Information** tab shows the list of **affected functions**.
111+
112+
![Security and risk management finding affected functions](images/security-risk-management-affected-functions.png)
113+
114+
Click **Check if you're affected** to copy a ready-made prompt for your AI coding assistant (such as Cursor, Claude Code, or GitHub Copilot). The prompt asks your assistant to search your repository for calls to the affected functions and recommend whether to upgrade the dependency or, if the functions aren't used, ignore the finding as **Not exploitable**.
115+
116+
!!! note
117+
This is a signal, not a guarantee. Review your coding assistant's findings before upgrading a dependency or ignoring a finding.
118+
119+
!!! note
120+
Not every advisory lists specific affected functions — some vulnerabilities (for example, configuration issues) aren't tied to specific functions, so this section doesn't appear for every finding.
121+
122+
Affected functions are also available from the terminal — see [checking affected functions with the Codacy Cloud CLI](../codacy-cloud-cli/index.md#affected-functions).
123+
124+
To review reachable dependencies across one or multiple repositories at once, instead of one finding at a time, see [auditing affected functions across one or multiple repositories](../codacy-cloud-cli/index.md#affected-functions-scale) with the Codacy Cloud CLI.
125+
108126
### Severity changes {: id="severity-changes"}
109127

110128
The same Common Vulnerability and Exposure can be classified with different severities in different sources, like cve.org or NVD, and Trivy uses these and other sources to update their database. As such, there may be situations where the severity attributed to a Finding by Trivy is not in line with a specific source. Subsequent analysis can then close a Finding and re-open it with a different severity, if a Trivy database update occurs.

0 commit comments

Comments
 (0)