Skip to content

Commit 86c9139

Browse files
committed
fix permissions
1 parent 2578220 commit 86c9139

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

Makefile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
RELEASE_VERSION :=$(shell cat .version)
22
COMMIT :=$(shell git rev-parse HEAD)
3-
YAML_FILES :=$(shell find . -type f -regex ".*yaml" -print)
3+
YAML_FILES :=$(shell find . -type f -regex ".*y*ml" -print)
44
CURRENT_DATE :=$(shell date '+%Y-%m-%dT%H:%M:%SZ')
55

66
## Variable assertions
@@ -60,15 +60,6 @@ build: tidy ## Builds CLI binary
6060
-extldflags '-static'" \
6161
-a -mod vendor -o bin/vulctl cmd/vulctl/main.go
6262

63-
.PHONY: image
64-
image: ## Builds the docker image
65-
docker build \
66-
--build-arg VERSION=$(RELEASE_VERSION) \
67-
--build-arg COMMIT=$(COMMIT) \
68-
--build-arg DATE=$(CURRENT_DATE) \
69-
-t vulctl:$(RELEASE_VERSION) \
70-
.
71-
7263
.PHONY: setup
7364
setup: ## Creates the GCP resources
7465
terraform -chdir=./setup init

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ Vulnerability scanners export tool.
1111

1212

1313
```shell
14-
vulctl import --project $project \
15-
--source $image \
14+
vulctl import --source $image \
1615
--file report.json \
1716
--format snyk
17+
--output results.json
1818
```
1919

2020
The currently supported scanners/formats include:

pkg/vul/import.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func output(in *types.InputOptions, vuls map[string]*types.Vulnerability) error
7373
return errors.Wrap(err, "error marshaling the output to file")
7474
}
7575

76-
if err := os.WriteFile(*in.Output, b, 0644); err != nil {
76+
if err := os.WriteFile(*in.Output, b, 0600); err != nil {
7777
return errors.Wrapf(err, "error writing the output to file: %s", *in.Output)
7878
}
7979

0 commit comments

Comments
 (0)