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

Error: TypeError: Cannot read property '0' of undefined #70

Closed
rupeshphuyal opened this issue Oct 30, 2020 · 4 comments
Closed

Error: TypeError: Cannot read property '0' of undefined #70

rupeshphuyal opened this issue Oct 30, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@rupeshphuyal
Copy link

Hi,

I have the following steps defined in github actions but it is giving the following error after scanning the image.

Error: TypeError: Cannot read property '0' of undefined

 # Scan Docker image 
    - name: Scan image
      uses: actions/scan-action@v2
      id: scan
      with:
        image: ${{ steps.build-image.outputs.image }}
        acs-report-enable: true
        severity-cutoff: critical 
          
    - name: upload Anchore scan SARIF report
      uses: actions/codeql-action/upload-sarif@v1
      with:
        sarif_file: results.sarif
@alfredodeza
Copy link
Contributor

Hi @rupeshphuyal ! Thanks for reporting this... good news is that I think this will be solved by #69

Could you try using uses: actions/scan-action@undefined-links and see if the problem goes away?

@rupeshphuyal
Copy link
Author

@alfredodeza thanks a lot. yes it worked with uses: actions/scan-action@undefined-links

@alfredodeza
Copy link
Contributor

Thanks for confirming @rupeshphuyal ! I'm going to close this since the PR that fixes this issue has been merged. This is now pending a release. Thanks again for taking the time to report this.

@alfredodeza
Copy link
Contributor

@rupeshphuyal the fix for this problem has been released as part of the v2 tag, so you can go back to using that instead of a branch.

@alfredodeza alfredodeza added the bug Something isn't working label Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants