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