David Wertenteil
2bfe2a590c
Merge pull request #1034 from matthyx/1032
...
only attempt to print existing attack graphs
2023-01-13 13:24:08 +02:00
David Wertenteil
2be0ef48d8
Merge pull request #1007 from matthyx/bitbucket
...
add support for Bitbucket scanning
2023-01-13 09:51:57 +02:00
Matthias Bertschy
c97513e4e8
only attempt to print existing attack graphs
2023-01-13 08:38:29 +01:00
Matthias Bertschy
1757c891aa
add support for Bitbucket scanning
2023-01-13 07:35:07 +01:00
David Wertenteil
b4a6a18a56
Merge pull request #1030 from dwertent/master
...
Update github workflows and temapltes
2023-01-12 14:14:03 +02:00
David Wertenteil
13ca0027a2
upgrade templates
2023-01-12 14:06:04 +02:00
Moshe Rappaport
93b626bb1e
Merge pull request #1029 from dwertent/update-workflow
...
golangci-lint will setup go version 1.19
2023-01-12 13:48:53 +02:00
David Wertenteil
6b4310cd88
golangci-lint - continue-on-error
v2.0.399
2023-01-12 13:46:12 +02:00
David Wertenteil
c883a297b3
do not run GH WF on none code dirs
2023-01-12 13:45:10 +02:00
David Wertenteil
3af351d91f
Remove new pr welcome bot
2023-01-12 13:40:34 +02:00
David Wertenteil
93cde0f1a0
golangci-lint will setup go version 1.19
2023-01-12 13:38:29 +02:00
David Wertenteil
a48d9be386
Merge pull request #1013 from fredbi/test/more-getter-tests
...
Refactored LoadPolicy getter, with unit tests
v2.0.398
2023-01-11 13:46:08 +02:00
David Wertenteil
3c93c2c45c
Merge pull request #1004 from darkweaver87/fix/panic
...
🐛 fix/panic
2023-01-11 12:06:01 +02:00
David Wertenteil
77e0a04c99
fixed unit test
2023-01-11 11:31:30 +02:00
David Wertenteil
b8762b924c
Merge branch 'dev' into test/more-getter-tests
2023-01-11 11:21:43 +02:00
David Wertenteil
025e75213a
Merge pull request #1017 from matthyx/remotes
...
fix: branchRef.Remote can be a gitUrl
2023-01-11 09:01:31 +02:00
Matthias Bertschy
1a3a58a309
fix: branchRef.Remote can be a gitUrl
2023-01-11 07:48:31 +01:00
Matthias Bertschy
19438e6143
Merge pull request #1012 from anubhav06/azure-scanning
...
added Azure repo scanning support
2023-01-11 07:21:11 +01:00
Anubhav Gupta
284c8c737b
Merge branch 'dev' of https://github.com/anubhav06/kubescape into azure-scanning
2023-01-10 23:30:11 +05:30
Anubhav Gupta
3441a65290
added Azure repo scanning support
...
Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com >
2023-01-10 23:29:35 +05:30
Frederic BIDON
773e43b1e1
refact(getter): refactored loadpolicy
...
* feat: added support for ListControls and GetFrameworks
* perf: introduced jsoniter unmarshalling for faster decoding
* introduced stricted error handling & predefined errors:
* suppressed edge cases when a flaky value is returned instead of an error
* added full unit tests of LoadPolicy
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-09 14:48:18 +01:00
David Wertenteil
ddc0b2daf2
Merge pull request #1009 from fdingiit/v2.0.180-fix
...
bug fix for cannot read local artifacts
v2.0.397
2023-01-09 13:15:59 +02:00
David Wertenteil
596686602c
Merge pull request #1010 from fredbi/chore/slightly-more-linting
...
Chore/slightly more linting
2023-01-09 13:12:07 +02:00
Rémi BUISSON
5bb0c97f8f
fix: panic on non-cluster scan
2023-01-09 10:34:08 +01:00
Rémi BUISSON
256db4abfb
Revert " 🐛 fix panic"
...
This reverts commit 08b8ae45432ddab5137b18347190b505f28e8389.
2023-01-09 08:56:48 +01:00
Rémi BUISSON
3546961a5e
🐛 fix panic
2023-01-09 08:56:48 +01:00
Frederic BIDON
e6dc7c2367
added unit tests to load policy getter
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-06 12:56:40 +01:00
dingfei
07fa3b4589
bug fix of cannot read local artifacts
2023-01-06 17:28:36 +08:00
Frederic BIDON
d6ed4b1aca
finished added linters for this round
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-06 09:32:19 +01:00
Frederic BIDON
69846bb4c0
refactored load policy getter for Frameworks
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-06 09:32:18 +01:00
Frederic BIDON
2e5ad85fe0
simplified trivial expressions (gosimple)
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-06 09:32:18 +01:00
Frederic BIDON
1025431d64
fixed ineffectual assigns
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-06 09:32:18 +01:00
Frederic BIDON
1a863473e7
fixed goimports
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-06 09:32:17 +01:00
Frederic BIDON
28a44ac531
fixed leaking body on http response (bodyclose)
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-06 09:32:17 +01:00
Frederic BIDON
cf484c328b
fixed issues reported by gover (e.g. shadowed variables)
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-06 09:32:17 +01:00
Frederic BIDON
668514e08d
commented currently unused code
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-06 09:32:17 +01:00
Frederic BIDON
dc45efb6ef
ensured gofmt
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-06 09:32:16 +01:00
Frederic BIDON
6d3844f187
follow-up on review following initial relinting
...
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-06 09:32:16 +01:00
Matthias Bertschy
4d6e85d4c7
Merge pull request #969 from fredbi/fix/conditional-build-for-git-support
...
Fix/conditional build for git support
2023-01-06 09:11:07 +01:00
Frederic BIDON
d336f4484c
build(git): added build tag control over native git functionality
...
* fixes #964
* adapted build and ci to use build tag
* fixup error messages
* report git scan skipped warning & version
* fixed CI on windows: powershell parsing args...
* fixup leftover comment
* fixup typo in test message
* resolved merge conflicts on unit tests
* fix: added gitenabled tag to Makefile target
Signed-off-by: Frederic BIDON <fredbi@yahoo.com >
2023-01-05 17:46:51 +01:00
David Wertenteil
bf263d8d51
Merge pull request #1006 from vladklokun/fix-missing-upstream-panic
...
Fix missing upstream panic
2023-01-05 13:35:03 +02:00
Vlad Klokun
cc3cf1932c
style: go fmt the project
2023-01-05 12:49:19 +02:00
Vlad Klokun
6a4dc79689
fix: don’t panic when branch is missing remote and fallback
...
This change fixes the case in which Kubescape would panic when scanning
a local Git repository that:
- has the current branch that does not have an upstream set
- does not have an `origin` branch to fall back on
The panic happened because we did not check if the `origin` key exists
in the map of upstreams. This change adds a test for this scenario and
makes it pass by checking if the key exists. If it does not, it returns
an error.
Fixes #1005
2023-01-05 12:47:23 +02:00
David Wertenteil
8c189f6e3c
Merge pull request #716 from pwnb0y/master
...
install.ps1 is modified to increase downloading speed as well as show progress bar
2023-01-05 08:28:47 +02:00
Amir Malka
b309cfca7a
Print attack tree (optional, with argument) ( #997 )
...
* Print attack tree with argument
* fix
2023-01-03 08:46:50 +02:00
David Wertenteil
c4b3ef5b80
Support AKS parser ( #994 )
...
* support GKE parser
* update go mod
* Added KS desgin.drawio
* update k8s-interface pkg
* Added KS desgin.drawio
* support GKE parser
* update go mod
* update k8s-interface pkg
* Added KS desgin.drawio
* revert k8s.io to v0.25.3
* ran go mod tidy
* update sign-up url
* [wip] Adding CreateAccount support
* revert to docs URL
* update opa-utils pkg
* update opa-utils pkg
2023-01-03 08:44:29 +02:00
David Wertenteil
aba978e94a
Merge pull request #996 from dwertent/bump-go-19
...
Bump go version to 1.19
2023-01-03 07:35:39 +02:00
David Wertenteil
a49781e9a8
Merge pull request #998 from Oshratn/patch-1
...
English and typos
2023-01-02 15:10:08 +02:00
Oshrat Nir
3ba19f55f1
English and typos
2023-01-02 14:55:27 +02:00
David Wertenteil
40a9b9406d
Merge pull request #984 from fredbi/chore/introduce-linting
...
Chore/introduce linting
2023-01-02 08:48:14 +02:00