File tree Expand file tree Collapse file tree 1 file changed +17
-20
lines changed Expand file tree Collapse file tree 1 file changed +17
-20
lines changed Original file line number Diff line number Diff line change @@ -20,32 +20,29 @@ jobs:
2020# - name: Checkout repository
2121# uses: actions/checkout@v4
2222
23- - name : Install dependencies
23+ - name : Prepare Vuls config.toml
2424 run : |
25- sudo apt-get update
26- sudo apt-get install -y git curl unzip sudo
27-
28- - name : Install Vuls
29- run : |
30- git clone https://github.com/vulsio/vulsctl.git
31- cd vulsctl/docker/
32-
33- - name : Create Vuls config
34- run : |
35- cat <<EOF > config.toml
25+ cat > config.toml <<'EOF'
3626 [servers]
37- [servers.local]
38- host = "127.0.0.1"
39- user = "runner"
40- password = ""
41- sudo = true
27+
28+ [servers.localhost]
29+ host = "localhost"
30+ port = "local"
4231 EOF
4332
44- # - name: Run Vuls configtest
45- # run: ./scan.sh configtest
33+ - name : Check config
34+ run : |
35+ docker run --rm \
36+ -v $PWD:/workdir \
37+ vuls/vuls configtest \
38+ -config=/workdir/config.toml
4639
4740 - name : Run Vuls scan
48- run : ./scan.sh local
41+ run : |
42+ docker run --rm \
43+ -v $PWD:/workdir \
44+ vuls/vuls scan \
45+ -config=/workdir/config.toml
4946
5047# - name: Prepare Vuls config.toml
5148# run: |
You can’t perform that action at this time.
0 commit comments