Skip to content

Commit ce5ed08

Browse files
salome-voltzmathieubellon
authored andcommitted
Merge pull request #47 from GitGuardian/salomevoltz/release-v0.4.1
chore(changelog): Add changelog for v0.4.1
2 parents e056f31 + 46a73e7 commit ce5ed08

File tree

4 files changed

+43
-53
lines changed

4 files changed

+43
-53
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# GitGuardian Secret Security Changelog
22

3+
## [0.4.1]
4+
5+
### Fixed
6+
7+
- Ensure all global environment variables are loaded before making API calls
8+
39
## [0.4.0]
410

511
### Modified

README.md

Lines changed: 22 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,36 @@
1-
# GitGuardian for VSCode
1+
# GitGuardian for VS Code
22

3-
Simply install the extension and let GitGuardian protect you from accidentally exposing secrets in your code. With GitGuardian, you can code with confidence, knowing that your sensitive information is safe from leaks.
3+
Detect secrets in real time and retroactively across extensive sources, with no limit to your team’s scale. GitGuardian grows with you, securing both new and legacy codebases with unmatched precision.
44

5-
We detect more than 400+ types of secrets directly from VSCode using [GitGuardian CLI (ggshield)](https://www.gitguardian.com/ggshield).
6-
7-
### Features
8-
9-
- When a file is saved, it is scanned using the GitGuardian CLI (ggshield) application bundled with the extension
10-
- Found secrets are highlighted in code and available in the `Problems` panel as warnings
11-
- Secrets can be ignored running the command `gitguardian: Ignore last found incidents` or via the UI
12-
- Your API quota can be checked running the command `gitguardian: Show quota`
5+
Whether you’re a solo developer or part of a team, GitGuardian scales with you, catching secrets in every language, every repo, and every branch.
136

147
![Incident highlighted](https://raw.githubusercontent.com/GitGuardian/gitguardian-vscode/main/doc/incident_highlighted_dark.png)
158

16-
## Getting started
17-
18-
### Authentication
19-
20-
Once the extension is installed, simply click on "Link your IDE to your account" for automatic authentication. If you are a user with an on-premise instance of GitGuardian, go to the extension settings to enter your URL and API key.
21-
22-
### Scan for secrets
23-
24-
The scanning is triggered automatically when saving a file. Incidents are highlighted in file and available in the `Problems` panel as warnings.
25-
26-
### How to remediate incidents?
27-
28-
Remediation guidelines are conveniently displayed directly in the extension's side panel. Your security team can customize these messages to provide you with the most accurate information, enabling you to address issues promptly and effectively.
29-
30-
For more info on how to remediate incidents, you can take a look at GitGuardian's [documentation](https://docs.gitguardian.com/internal-repositories-monitoring/remediate/remediate-incidents).
31-
32-
### Ignore secrets (only when working in a workspace)
33-
34-
Immediately after saving a file, if any incidents are detected, you can hover over the identified secret and click on "GitGuardian: Ignore Secret."
35-
36-
This action will create or update the .gitguardian.yaml file in the root of your workspace, allowing you to ignore the detected secrets.
37-
38-
For more information, please refer to the GitGuardian CLI (ggshield) documentation.
39-
40-
### Check my quota
41-
42-
Run the command `gitguardian: Show quota` from VSCode command palette to check the current status of your API quota.
43-
44-
With a free personal account, you have access to 10,000 API calls each month.
9+
### Key Features
4510

46-
## Support, Feedback, Contributing
11+
- **Automatic Scanning**: Each time you save a file, GitGuardian scans for over 400+ types of secrets using the bundled GitGuardian CLI (`ggshield`).
12+
- **Secret Detection & Alerts**: Detected secrets are highlighted in your code and displayed as warnings in the `Problems` panel.
13+
- **Easy Ignore Option**: Ignore secrets quickly with the command `GitGuardian: Ignore Last Found Incidents` or directly via the UI.
4714

48-
This project is open to feature requests/suggestions, bug reports etc.
15+
### Get Started in 3 Steps
4916

50-
If you need support or found a bug : https://github.com/GitGuardian/gitguardian-vscode/issues/new/choose
17+
1. **Authenticate**: Link your IDE to your GitGuardian account with one click. For on-premise users, enter your custom URL and API key in settings.
18+
2. **Scan on Save**: Save a file to trigger an automatic scan. Incidents show up instantly in your file and Problems panel.
19+
3. **Remediate with Guidance**: View remediation tips right in the extension’s side panel. Security teams can customize messages for precise guidance.
5120

52-
For ideas and general discussions : https://github.com/GitGuardian/gitguardian-vscode/discussions
21+
### Additional Features
5322

54-
Security reports : Please report it using our [Vulnerability Disclosure Portal](https://vdp.gitguardian.com).
23+
- **Ignore Secrets**: After a scan, hover over the identified secret and select "GitGuardian: Ignore Secret" to add it to `.gitguardian.yaml`.
24+
- **Quota Tracking**: Run "GitGuardian: Show Quota" to monitor API call usage. Personal accounts include up to 10,000 monthly API calls.
25+
- **Check API Quota**: Stay aware of usage by running "GitGuardian: Show Quota."
5526

56-
## Release Notes
27+
### Support & Contributions
5728

58-
See [Change log](https://github.com/GitGuardian/gitguardian-vscode/blob/main/CHANGELOG.md)
29+
- **Report Issues**: [Submit bug reports](https://github.com/GitGuardian/gitguardian-vscode/issues/new/choose).
30+
- **Feature Requests & Ideas**: [Join discussions](https://github.com/GitGuardian/gitguardian-vscode/discussions).
31+
- **Security Reports**: Use our [Vulnerability Disclosure Portal](https://vdp.gitguardian.com).
5932

60-
## License
33+
### Release Notes & License
6134

62-
GitGuardian CLI (ggshield) and this extension are MIT licensed.
35+
- **Updates**: See the [Changelog](https://github.com/GitGuardian/gitguardian-vscode/blob/main/CHANGELOG.md).
36+
- **License**: GitGuardian CLI (`ggshield`) and this extension are MIT licensed.

package.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
{
22
"name": "gitguardian",
33
"repository": "https://github.com/GitGuardian/gitguardian-vscode",
4-
"displayName": "GitGuardian",
5-
"description": "Visual Studio Code extension designed to help developers safeguard their sensitive information from accidental leaks in their code",
4+
"displayName": "GitGuardian - Secrets Security",
5+
"description": "A safety net to help developers safeguard their sensitive information (passwords, API key, tokens, ..) from accidental leaks in their code",
66
"icon": "images/icon.png",
7-
"version": "0.4.0",
7+
"version": "0.4.1",
88
"publisher": "gitguardian-secret-security",
99
"engines": {
1010
"vscode": "^1.81.0"
1111
},
12+
"galleryBanner": {
13+
"color": "#081736"
14+
},
1215
"categories": [
1316
"Other"
1417
],
18+
"keywords": [
19+
"security",
20+
"secrets",
21+
"password",
22+
"scan",
23+
"devsecops"
24+
],
1525
"activationEvents": [
1626
"onStartupFinished"
1727
],
@@ -149,4 +159,4 @@
149159
"dependencies": {
150160
"axios": "^1.7.7"
151161
}
152-
}
162+
}

src/lib/run-ggshield.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function runGGShieldCommand(
2222
const { ggshieldPath, apiUrl, apiKey } = configuration;
2323
let env: NodeJS.ProcessEnv = {
2424
...process.env,
25-
GITGUARDIAN_API_URL: apiUrl,
25+
GITGUARDIAN_INSTANCE: apiUrl,
2626
GG_USER_AGENT: "gitguardian-vscode",
2727
};
2828

0 commit comments

Comments
 (0)