Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHA workflow for dockerscan #7154

Closed
macfarla opened this issue May 29, 2024 · 0 comments · Fixed by #7216
Closed

GHA workflow for dockerscan #7154

macfarla opened this issue May 29, 2024 · 0 comments · Fixed by #7216
Assignees
Labels
devops DevOps related task

Comments

@macfarla
Copy link
Contributor

currently still running in CI
https://app.circleci.com/pipelines/github/hyperledger/besu/27763/workflows/fc96d628-5928-4bb0-ae50-b37b96b7ce57

from config.yml

  dockerScan:
    executor: trivy_executor
    steps:
      - checkout
      - restore_gradle_cache
      - setup_remote_docker:
          docker_layer_caching: true
      - run:
          name: Install trivy
          command: |
            apk add --update-cache --upgrade curl bash
            curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
      - run:
          name: Scan with trivy
          shell: /bin/sh
          command: |
            for FILE in $(ls docker)
            do
              if [[ $FILE == "test.sh" || $FILE == "tests" ]]; then
                continue
              fi
              docker pull -q "hyperledger/besu:develop-$FILE"
              trivy -q image --exit-code 1 --no-progress --severity HIGH,CRITICAL "hyperledger/besu:develop-$FILE"
            done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops DevOps related task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants