feat: add Infrastructure as Code (IaC) scanning support#237
Closed
jasonouellet wants to merge 2 commits intosnyk:mainfrom
Closed
feat: add Infrastructure as Code (IaC) scanning support#237jasonouellet wants to merge 2 commits intosnyk:mainfrom
jasonouellet wants to merge 2 commits intosnyk:mainfrom
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
7ecd4d6 to
0ccca11
Compare
- Add TestType.IAC enum and severity threshold configuration - Add 'iac' and 'iac test' as valid commands - Update task.json with IaC options and visibility rules - Update runSnykTest to handle IaC test type - Add unit tests for IaC validation and monitor behavior - Update README.md with IaC examples and documentation
0ccca11 to
b2ecef6
Compare
Author
|
@danlucian, can you review this ? |
|
Your PR has not had any activity for 30 days. In 2 days I'll close it. Make some activity to remove this. |
|
Your PR has now been stale for 2 days. I'm closing it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for Snyk Infrastructure as Code (IaC) scanning to the Azure Pipelines task, enabling users to scan IaC files such as Terraform, CloudFormation, Kubernetes manifests, and ARM templates for security misconfigurations.
Changes
New Features
iacas a new test type option in the task configurationsnyk iac testcommand executioniacandiac testas valid commands for thecommandinputsnyk monitortargetFileparameterUpdated Components
TestType.IACenum value, severity threshold configuration, and valid command definitionsrunSnykTestto handle IaC test typeSupported IaC Options
All Snyk CLI options for
snyk iac testare supported via theadditionalArgumentsparameter, including:--scanmodes (resource-changes, deployment-analysis, full-scan)--var-filefor Terraform variables--policy-pathfor custom policies--rulesfor custom rule sets--reportfor sharing results with SnykTesting
Usage Example
Documentation
This proposal follows the project's conventions (Angular-style commits) and provides a clear and comprehensive description of the changes made.