Commit Graph

2316 Commits (26fd9aa21ea9d110a629f817ceaf0a41202a4f7a)

Author SHA1 Message Date
sundowndev-snyk 0ed35f5493 fix: panic in apigatewayv2_api_mapping enumerator 2022-03-11 11:56:04 +04:00
Elie 856df942e9
Merge pull request #1377 from snyk/feat/improve_snyk_piping
Improve snyk piping
2022-03-09 13:36:27 +01:00
Elie b3986d9921
feat: enabled colors when driftctl is piped in snyk CLI 2022-03-09 10:31:00 +01:00
Elie c9087ea294
feat: Log diagnostic and progress to stderr 2022-03-07 14:45:01 +01:00
Elie 5bc324f148
Merge pull request #1372 from snyk/feat/add_fmt_cmd
Add `driftctl fmt` command
2022-03-07 10:23:01 +01:00
Elie 69b9702d5d
feat: add options in analysis serialization 2022-03-04 17:12:55 +01:00
Elie 4734fbe5a8
feat: add `driftctl fmt` command 2022-03-04 17:10:02 +01:00
Elie f2f846de9e
Merge pull request #1373 from snyk/feat/json_duration
Add scan_duration json field
2022-03-04 15:16:56 +01:00
sundowndev 981a2aa84f refactor(analyzer): ScanDuration field in analysis
Add omitempty struct tag, rename the field to ScanDuration for consistency and make it uint instead of int.
2022-03-04 17:56:53 +04:00
sundowndev 56d57afb57 feat: add scan_duration json field 2022-03-04 15:16:28 +04:00
Elie 04b9206b6d
Merge pull request #1371 from snyk/feat/json_total_iac_source_count
Add total_iac_source_count json field
2022-03-04 11:47:55 +01:00
sundowndev 3a9195258b feat: add total_iac_source_count json field 2022-03-04 14:43:16 +04:00
Elie 79dddd161c
Merge pull request #1367 from snyk/chore/refactor_changelog_script
Check for empty categories in changelog script
2022-03-02 10:07:09 +01:00
sundowndev 245e33af1f refactor: add check in changelog script 2022-03-02 11:34:32 +04:00
Raphaël a0322479b4
Merge pull request #1366 from snyk/chore/refacto_changelog_script
chore: use jq to improve changelog script
2022-03-02 11:19:46 +04:00
Elie 8ca3fe45d3
chore: use jq to improve changelog script 2022-03-01 18:14:39 +01:00
Elie 177fbf1989
Merge pull request #1361 from snyk/changelog-uncategorised
chore: include uncategorised changes in changelog
2022-03-01 18:10:40 +01:00
Craig Furman c360c60951 chore: include uncategorised changes in changelog
Ensure all PRs, even ones missing a "kind" label, are present in the
generated changelog. During the manually-initiated release process,
maintainers can edit the changelog to categorise them if they wish.

If we move to an automated, continuous release, it will still be better
to include uncategorised PRs than to omit them altogether.
2022-03-01 16:11:52 +00:00
Raphaël b1992cb8a4
Merge pull request #1362 from snyk/fix/issue-tagging-script
Fix issue tagging script
2022-03-01 15:59:15 +04:00
sundowndev 4923cb652a fix: issue tagging script
This commit fixes the grep expression that parse the related issue ID on pull requests. It also fixes the milestone API endpoint missing a 's'. Finally, it uses  instead of  variable as the new version.
2022-03-01 15:35:20 +04:00
Elie e31839510f
Merge pull request #1359 from snyk/fea/only-mode
New --only-managed / --only-unmanaged flags
2022-03-01 11:33:57 +01:00
Elie 39dae70e51
Merge pull request #1363 from snyk/debug/acc_test_state_reader
chore: fix failed ACC tests
2022-02-28 19:26:34 +01:00
Elie 83a34ae5d4
chore: fix failed ACC tests 2022-02-28 19:05:15 +01:00
William Beuil d2cc564494
fix: deep at true when only-managed 2022-02-28 12:27:59 +01:00
William Beuil 3b9f6c6a99
feat: only-managed / only-unmanaged flags 2022-02-28 12:27:59 +01:00
Raphaël c9bdbb0e0a
Merge pull request #1360 from snyk/fix/html-to-stdout
Use voidprinter when sending HTML output to stdout
2022-02-28 11:57:54 +04:00
sundowndev 70bcd60fbd fix: use voidprinter for html output
We should not print anything but the scan output when we send output to stdout.
2022-02-28 11:48:14 +04:00
Elie 0547292e67
Merge pull request #1357 from snyk/feat/add_azure_blob_storage_backend
Add azure blob storage backend
2022-02-25 14:55:10 +01:00
Elie 79c6a324f4
chore: add flags for azure backend options 2022-02-25 12:24:39 +01:00
Elie ef767760fe
feat: allow state enumeration in azure blob 2022-02-23 15:02:00 +01:00
Elie 7778462ade
feat: add azure blob backend 2022-02-23 15:01:59 +01:00
Elie 5dd9162923
chore: add state reader acc test to CI 2022-02-22 14:51:15 +01:00
Elie 73bbd1cb03
chore: add azblob dependency 2022-02-22 14:51:15 +01:00
Elie 3e550b6a68
chore: allow deserialise resource sources 2022-02-22 14:51:14 +01:00
William BEUIL 2116470ffa
Merge pull request #1356 from snyk/all-contributors/add-muratcelep
docs: add muratcelep as a contributor for code
2022-02-21 16:32:18 +01:00
allcontributors[bot] 89a0f49a77
docs: update .all-contributorsrc [skip ci] 2022-02-21 15:30:59 +00:00
allcontributors[bot] 32cffe139f
docs: update CONTRIBUTORS.md [skip ci] 2022-02-21 15:30:58 +00:00
Murat Celep b927e57d71
Merge pull request #1348 from snyk/feat/service-arg-to-group-resouces-v2
Add a new ignores flag to parse ignore patterns as array
2022-02-21 16:23:36 +01:00
Elie 57880b7c2d
Merge pull request #1355 from snyk/all-contributors/add-wakeful
docs: add wakeful as a contributor for code
2022-02-21 14:54:54 +01:00
allcontributors[bot] 12a7b5b90e
docs: update .all-contributorsrc [skip ci] 2022-02-21 13:21:31 +00:00
allcontributors[bot] a56c6b6e28
docs: update CONTRIBUTORS.md [skip ci] 2022-02-21 13:21:30 +00:00
Martin d1491792d9
Merge pull request #1354 from wakeful/json-output-and-human-readable-attributes
adding `humanReadableAttributes` to JSON output
2022-02-21 14:20:44 +01:00
AJ 353c189005 adding `human_readable_attributes` to JSON output
Related: https://github.com/snyk/driftctl/issues/1325
2022-02-21 13:15:13 +00:00
Murat Celep ff40aa55a0
Merge ignore pattern based tests into existing tests 2022-02-21 11:43:08 +01:00
Craig Furman 7ecaad2289
Merge pull request #1353 from snyk/feat/disambiguate-exit-codes
Disambiguate between drift and error exit codes
2022-02-21 09:37:01 +00:00
Murat Celep 072e0bed58
Minor refactoring 2022-02-21 10:24:43 +01:00
Murat Celep caa10fedc0
rename test method to emphasize purpose of the test 2022-02-21 10:00:33 +01:00
Craig Furman 959e489bd4 Disambiguate between drift and error exit codes
`driftctl scan` exits with zero only when there is no detected drift.
Prior to this commit, it exited with 1 when there was a non-panic error,
and also when there was detected drift. This makes error handling in
scripts more awkward than it needs to be.

This commit changes the exit code to 2 whenever there are errors during
a scan, whether that error is from a panic or not, leaving 1 as the exit
code used solely for when drift is detected.

Related: https://github.com/snyk/driftctl/issues/1350
2022-02-17 17:39:35 +00:00
Murat Celep c6b53668ba
add test for ignore pattern processing 2022-02-17 09:57:34 +01:00
Murat Celep 9ad22d51db
add test for ignore pattern processing 2022-02-17 09:57:22 +01:00