You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/MAC_SETUP.md
+69Lines changed: 69 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,6 +171,7 @@ In all cases, the receiver of the data must already have your **public key**. So
171
171
In dissemination, we use `ssh` to login to remote machines (including our servers in the cloud), and also to secure
172
172
our communication with Github.
173
173
174
+
174
175
## OSS Index account and configuration
175
176
176
177
For Java and NodeJS projects, we use [OSS Index](https://ossindex.sonatype.org/) for auditing vulnerabilities.
@@ -183,3 +184,71 @@ To get setup:
183
184
- append the following variables to your shell startup file (e.g. `~/.zshrc`):
184
185
- `OSSINDEX_USERNAME` should be set to the email address you signed up to OSS Index with
185
186
- `OSSINDEX_TOKEN` is your API token which can be retrieved from the profile page in OSS Index
187
+
188
+
## Maven: Local Setup for ossindex:audit
189
+
190
+
To run mvn `ossindex:audit` or `make audit` successfully in Java projects, you must configure Maven to authenticate with the OSS Index API using your credentials.
191
+
192
+
Even though you’ve set OSSINDEX_USERNAME and OSSINDEX_TOKEN in your shell, Maven does not read environment variables directly for this plugin. Instead, it uses credentials defined in your Maven settings.xml file.
193
+
194
+
### Step 1: Confirm Your Environment Variables (Already Done?)
195
+
196
+
Ensure these are set in your shell profile (e.g. ~/.zshrc, ~/.bashrc):
0 commit comments