awslabs / awslabs/simple-code-scanning-pipeline

Add Synk scanning

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
19
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Snyk is a dependency vulnerability scanner.

It will require a token in order to operate. That token is ideally stored in Secrets Manager.

The Golden Pipeline should still deploy successfully if there is no token supplied -- it should just skip this check.

```{
"version": "0.2",
"phases": {
"install": {
"commands": [
"npm install -g snyk",
"pip install awscli --upgrade",
"pip install -r requirements.txt"
]
},
"build": {
"commands": [
"SNYK_TOKEN=$(aws secretsmanager get-secret-value --query SecretString --output text --secret-id snyk-auth-token --region us-west-2",
"snyk test",
"snyk monitor"
]
}
}
}
```

Contributor guide

Open the contributing guide

Research direction

Start at the Golden Pipeline deployment flow and inspect how build commands and AWS Secrets Manager values are configured. Verify the Snyk commands and token handling described in the issue, then test both deployments with and without the snyk-auth-token secret; done means scanning runs when configured and deployment still succeeds when it is absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, shell
Domain
cloud, devops, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.