Skip to content

fix: pin GitHub Actions to full SHA (CLOUDEVOPS-4942) #7

fix: pin GitHub Actions to full SHA (CLOUDEVOPS-4942)

fix: pin GitHub Actions to full SHA (CLOUDEVOPS-4942) #7

Workflow file for this run

name: CI (example)
# Controls when the workflow will run
on: [push, workflow_dispatch]
jobs:
ubuntu-ci:
name: Spectral ubuntu CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Install and run Spectral CI
uses: spectralops/spectral-github-action@ab90f8aa280790b550f34583e1a073bef4af5368 # v4
with:
spectral-dsn: ${{ secrets.SPECTRAL_DSN }}
spectral-args: scan --ok
ubuntu-audit:
name: Spectral ubuntu audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Install and run Spectral Audit
uses: spectralops/spectral-github-action@ab90f8aa280790b550f34583e1a073bef4af5368 # v4
with:
spectral-dsn: ${{ secrets.SPECTRAL_DSN }}
spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/SpectralOps/spectral-github-action --include-tags base,audit --ok
macos-ci:
name: Spectral macos CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Install and run Spectral CI
uses: spectralops/spectral-github-action@ab90f8aa280790b550f34583e1a073bef4af5368 # v4
with:
spectral-dsn: ${{ secrets.SPECTRAL_DSN }}
spectral-args: scan --ok
macos-audit:
name: Spectral macos audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Install and run Spectral Audit
uses: spectralops/spectral-github-action@ab90f8aa280790b550f34583e1a073bef4af5368 # v4
with:
spectral-dsn: ${{ secrets.SPECTRAL_DSN }}
spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/SpectralOps/spectral-github-action --include-tags base,audit --ok
windows-ci:
name: Spectral windows CI
runs-on: windows-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Install and run Spectral CI
uses: spectralops/spectral-github-action@ab90f8aa280790b550f34583e1a073bef4af5368 # v4
with:
spectral-dsn: ${{ secrets.SPECTRAL_DSN }}
spectral-args: scan --ok
windows-audit:
name: Spectral windows audit
runs-on: windows-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Install and run Spectral Audit
uses: spectralops/spectral-github-action@ab90f8aa280790b550f34583e1a073bef4af5368 # v4
with:
spectral-dsn: ${{ secrets.SPECTRAL_DSN }}
spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/SpectralOps/spectral-github-action --include-tags base,audit --ok