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
David Wertenteil
f1514d6e76
Merge pull request #1002 from kubescape/hot-fix-windows-url
...
update opa-utils pkg with URL parsing fixed
v2.0.396
v2.0.181
2023-01-03 22:39:07 +02:00
David Wertenteil
3a038c9a0e
update opa-utils pkg with URL parsing fixed
2023-01-03 22:24:37 +02:00
b4bdf4d860
Release ( #1000 )
...
* fixed flaky loop(cautils): loadpolicy getter
We should not inject pointers to the variable iterated over by the
"range" operator.
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com >
* fixed more flaky pointers in loops (registryadaptors, opaprocessor)
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com >
* fixed more flaky pointers in loops (resultshandling)
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com >
* enabled golangci linter in CI
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com >
* fixed linting issues with minimal linters config
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com >
* bump go version to 1.19
* English and typos
* Support AKS parser (#994 )
* support GKE parser
* update go mod
* 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
* Print attack tree (optional, with argument) (#997 )
* Print attack tree with the argument
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com >
Co-authored-by: Frédéric BIDON <frederic@oneconcern.com >
Co-authored-by: Frédéric BIDON <fredbi@yahoo.com >
Co-authored-by: Oshrat Nir <45561829+Oshratn@users.noreply.github.com >
Co-authored-by: Amir Malka <amirm@armosec.io >
Co-authored-by: David Wertenteil <dwertent@armosec.io >
v2.0.180
2023-01-03 11:30:09 +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
David Wertenteil
d6b8f5862f
bump go version to 1.19
2022-12-28 23:18:03 +02:00
Frédéric BIDON
09f13c05e1
fixed linting issues with minimal linters config
...
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com >
2022-12-26 17:47:10 +01:00
Frédéric BIDON
b1c8872a29
enabled golangci linter in CI
...
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com >
2022-12-26 17:47:10 +01:00
Frédéric BIDON
22052f5869
fixed more flaky pointers in loops (resultshandling)
...
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com >
2022-12-26 17:47:10 +01:00
Frédéric BIDON
afce43add6
fixed more flaky pointers in loops (registryadaptors, opaprocessor)
...
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com >
2022-12-26 17:47:10 +01:00
Frédéric BIDON
4752364699
fixed flaky loop(cautils): loadpolicy getter
...
We should not inject pointers to the variable iterated over by the
"range" operator.
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com >
2022-12-26 17:47:08 +01:00
David Wertenteil
08e7108dc0
Merge pull request #991 from kubescape/dev
...
Release
v2.0.179
2022-12-22 18:12:37 +02:00
David Wertenteil
108a2d6dd8
Merge pull request #962 from anubhav06/gitlab-scan
...
added GitLab repo scanning support
2022-12-22 17:29:57 +02:00
David Wertenteil
2c28286bb1
update httphandler go mod
2022-12-22 17:07:47 +02:00
David Wertenteil
79858b7ed7
Merge pull request #975 from kooomix/dev
...
control scan and download only by id
2022-12-22 16:56:40 +02:00
David Wertenteil
bb2e83eb3b
update go-git pkg
2022-12-22 16:55:11 +02:00
David Wertenteil
282a29b971
Merge pull request #990 from dwertent/cloud-name-breakdown
...
update config scanning path
2022-12-22 16:37:27 +02:00
David Wertenteil
60b9edc463
update config scanning path
2022-12-22 16:14:44 +02:00
David Wertenteil
0f9a5e3127
Merge pull request #989 from dwertent/cloud-name-breakdown
...
Breakdown cloud-cluster name
2022-12-22 16:03:31 +02:00
David Wertenteil
7c79c14363
Update core/pkg/resultshandling/results.go
2022-12-22 15:00:59 +02:00
Vlad Klokun
fe84225252
feat: notify about writing to an output file in PrettyPrinter
2022-12-22 15:00:59 +02:00
Vlad Klokun
56da8d8d92
style: tidy up the PDFPrinter
...
- Shorten receiver names
- Modify comments to follow Go Doc convention
2022-12-22 15:00:59 +02:00
Vlad Klokun
f135e95d2c
style: shorten receiver names in JUnitPrinter
2022-12-22 15:00:59 +02:00
Vlad Klokun
db34183fc1
style: shorten receiver names in JSONPrinter
2022-12-22 15:00:59 +02:00
Vlad Klokun
8f3af71c84
style: shorten receiver names in HTML Printer
2022-12-22 15:00:59 +02:00
Vlad Klokun
116aee0c9c
style: shorten receiver names in PrettyPrinter
2022-12-22 15:00:59 +02:00