Giter Site home page Giter Site logo

Comments (2)

homoluctus avatar homoluctus commented on August 23, 2024 1

@prasrvenkat @gerassimos

Thanks for the feedback.

from gitrivy.

gerassimos avatar gerassimos commented on August 23, 2024

I have the same problem
Following is my github workflow file:

name: Vulnerability Scan

on:

  push:
    paths:
      - '.github/workflows/05_trivy_scan.yml'
      - 'resources/iot-c/**'        
    # Sequence of patterns matched against refs/heads
    branches:    
      - master         # Push events on master branch
      - 'release*'     # Push events to branches matching refs/heads/release_01

jobs:

  scan:
    name: Docker image Vulnerability Scan
    runs-on: ubuntu-18.04
    steps:
      - name: Pull docker image
        run: docker pull dgs19/iot-collector:latest

      - name: scan with trivy
        uses: homoluctus/gitrivy@v1
        with:
          image: dgs19/iot-collector:latest

And following is the error I get:

 scan with trivy
19s
##[error]Node run failed with exit code 1
Run homoluctus/gitrivy@v1
  with:
    image: dgs19/iot-collector:latest
    trivy_version: latest
    severity: HIGH,CRITICAL
    vuln_type: os,library
    ignore_unfixed: false
    issue: true
    issue_title: Security Alert
    issue_label: trivy,vulnerability
Download URL: https://github.com/aquasecurity/trivy/releases/download/v0.4.3/trivy_0.4.3_Linux-64bit.tar.gz
Trivy Command Path: /home/runner/work/dgs19/dgs19/trivy
##[error]TypeError: cve.References is not iterable
    at Trivy.parse (/home/runner/work/_actions/homoluctus/gitrivy/v1/dist/index.js:13352:45)
    at /home/runner/work/_actions/homoluctus/gitrivy/v1/dist/index.js:6599:40
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/work/_actions/homoluctus/gitrivy/v1/dist/index.js:6555:58)
##[error]cve.References is not iterable
##[error]Node run failed with exit code 1

from gitrivy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.