@@ -565,6 +565,7 @@ jobs:
565565 - ncrack
566566 - nmap
567567 - whatweb
568+ - nikto
568569 steps :
569570 - name : Checkout
570571 uses : actions/checkout@v2
@@ -678,89 +679,7 @@ jobs:
678679 repository : ${{ env.DOCKER_NAMESPACE }}/scanner-${{ matrix.scanner }}
679680 readme-filepath : ./scanners/${{ matrix.scanner }}/docs/README.DockerHub-Scanner.md
680681
681- scanner-nikto :
682- # This Scanner has to be build seperately because the official image is only on GitHub but not on DockerHub
683- name : " Build | Scanner | Nikto"
684- needs :
685- - unit-python
686- - unit-javascript
687- runs-on : ubuntu-latest
688- services :
689- registry :
690- image : registry:2
691- ports :
692- - 5000:5000
693- steps :
694- - name : Checkout secureCodeBox
695- uses : actions/checkout/@v2
696- with :
697- path : scb
698-
699- - name : " Checkout Nikto"
700- uses : actions/checkout/@v2
701- with :
702- repository : " sullo/nikto"
703- path : nikto
704-
705- - name : Set up Docker Buildx
706- uses : docker/setup-buildx-action@v1
707- with :
708- driver-opts : network=host
709-
710- - name : Build and Push Nikto to Local Registry
711- uses : docker/build-push-action@v2
712- with :
713- context : ./nikto/
714- file : ./nikto/Dockerfile
715- push : true
716- tags : localhost:5000/sullo/nikto:latest
717-
718- - name : Docker Meta
719- id : docker_meta
720- uses : crazy-max/ghaction-docker-meta@v1
721- with :
722- images : ${{ env.DOCKER_NAMESPACE }}/scanner-nikto
723- tag-sha : true
724- tag-custom : 2.1.6
725- tag-semver : |
726- {{ version }}
727-
728- - name : Set up Docker Buildx
729- uses : docker/setup-buildx-action@v1
730- with :
731- driver-opts : network=host
732-
733- - name : Login to DockerHub
734- uses : docker/login-action@v1
735- with :
736- username : ${{ secrets.DOCKER_USERNAME }}
737- password : ${{ secrets.DOCKER_TOKEN }}
738-
739- - name : Set baseImageTag to commit hash
740- run : |
741- echo "baseImageTag=sha-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
742-
743- - name : Build and Push
744- uses : docker/build-push-action@v2
745- with :
746- context : ./scb/scanners/nikto/scanner
747- file : ./scb/scanners/nikto/scanner/Dockerfile
748- build-args : |
749- baseImageTag=${{ env.baseImageTag }}
750- platforms : linux/amd64
751- push : true
752- tags : ${{ steps.docker_meta.outputs.tags }}
753- labels : ${{ steps.docker_meta.outputs.labels }}
754-
755- - name : Update Docker Hub Description
756- uses : peter-evans/dockerhub-description@v2
757- with :
758- username : ${{ secrets.DOCKERHUB_USERNAME }}
759- password : ${{ secrets.DOCKERHUB_PASSWORD }}
760- repository : ${{ env.DOCKER_NAMESPACE }}/scanner-nikto
761- readme-filepath : ./scb/scanners/nikto/docs/README.DockerHub-Scanner.md
762-
763- # ---- Integration Tests ----
682+ # ---- Integration Tests ----
764683
765684 Integration-tests :
766685 name : Integration Tests | k8s ${{ matrix.k8sVersion }}
@@ -770,7 +689,6 @@ jobs:
770689 - parsers
771690 - scanners-third-party
772691 - scanners-custom
773- - scanner-nikto
774692 runs-on : ubuntu-latest
775693 strategy :
776694 matrix :
0 commit comments