oss-review-toolkit / ort-ci-github-action

Run ORT in your GitHub action workflow to do licensing, security and best practices checks and generate reports/SBOMs
Apache License 2.0
23 stars 9 forks source link

ORT Scanner: invalid spec #37

Open elgohr opened 1 day ago

elgohr commented 1 day ago

Adding scanner into the run parameter results in

 Running ORT Scanner... 
docker: invalid spec: :/ssh.socket: empty section between colons.
See 'docker run --help'.
Error: Process completed with exit code 125.

Used configuration as

name: Ort
on: 
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]
permissions:
  contents: read
jobs:
  test:
    runs-on: ubuntu-latest
    timeout-minutes: 5
    steps:
      - uses: actions/checkout@v4
      - run: git config --global url.https://github.com/.insteadOf ssh://git@github.com/
      - uses: oss-review-toolkit/ort-ci-github-action@v1
        with:
          run: 'cache-dependencies,analyzer,scanner,evaluator,advisor,reporter,upload-results'
elgohr commented 1 day ago

I guess it's because of the usage of SSH_AUTH_SOCK that hadn't been set