SpectralOps / spectral-github-action

Spectral Security Integration into your Github Actions pipeline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: TypeError [ERR_INVALID_URL]: Invalid URL: /latest/dl/linux

igrek8 opened this issue · comments

For some reason github action errors: with

Error: TypeError [ERR_INVALID_URL]: Invalid URL: /latest/dl/linux

name: Scan code

on:
  pull_request:
    branches:
      - main

env:
  SPECTRAL_DSN: ${{ secrets.SPECTRAL_DSN }}

jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: spectralops/spectral-github-action@v2
        with:
          spectral-dsn: ${{ env.SPECTRAL_DSN }}
          spectral-args: scan --fail-on-error --github-format --include-tags base,audit

image

Hi @igrek8
Can you verify that SPECTRAL_DSN is stored as a secret?
You can see here that our CI has passed today with no issues.

I can confirm SPECTRAL_DSN is present in the repository.

Closing as the job was attempted to run from dependabot.