Skip to content

Commit

Permalink
update ci and readme to use the new action version
Browse files Browse the repository at this point in the history
  • Loading branch information
guylev008 committed Nov 21, 2022
1 parent 849def5 commit 0030cae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,59 +11,59 @@ jobs:
name: Spectral ubuntu CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install and run Spectral CI
uses: spectralops/spectral-github-action@v2
uses: spectralops/spectral-github-action@v3
with:
spectral-dsn: ${{ env.SPECTRAL_DSN }}
spectral-args: scan --ok
ubuntu-audit:
name: Spectral ubuntu audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install and run Spectral Audit
uses: spectralops/spectral-github-action@v2
uses: spectralops/spectral-github-action@v3
with:
spectral-dsn: ${{ env.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@v2
- uses: actions/checkout@v3
- name: Install and run Spectral CI
uses: spectralops/spectral-github-action@v2
uses: spectralops/spectral-github-action@v3
with:
spectral-dsn: ${{ env.SPECTRAL_DSN }}
spectral-args: scan --ok
macos-audit:
name: Spectral macos audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install and run Spectral Audit
uses: spectralops/spectral-github-action@v2
uses: spectralops/spectral-github-action@v3
with:
spectral-dsn: ${{ env.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@v2
- uses: actions/checkout@v3
- name: Install and run Spectral CI
uses: spectralops/spectral-github-action@v2
uses: spectralops/spectral-github-action@v3
with:
spectral-dsn: ${{ env.SPECTRAL_DSN }}
spectral-args: scan --ok
windows-audit:
name: Spectral windows audit
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install and run Spectral Audit
uses: spectralops/spectral-github-action@v2
uses: spectralops/spectral-github-action@v3
with:
spectral-dsn: ${{ env.SPECTRAL_DSN }}
spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/SpectralOps/spectral-github-action --include-tags base,audit --ok
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Spectral Scan is a single self-contained binary, that's easy to get and use. Thi
Include this Action as a step in your workflow:

```
uses: spectral/spectral-action@v2
uses: spectral/spectral-action@v3
with:
spectral-dsn: $SPECTRAL_DSN
spectral-args: scan --ok
Expand All @@ -46,9 +46,9 @@ jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install and run Spectral CI
uses: spectralops/spectral-github-action@v2
uses: spectralops/spectral-github-action@v3
with:
spectral-dsn: ${{ env.SPECTRAL_DSN }}
spectral-args: scan --ok
Expand All @@ -68,9 +68,9 @@ jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install and run Spectral Audit
uses: spectralops/spectral-github-action@v2
uses: spectralops/spectral-github-action@v3
with:
spectral-dsn: ${{ env.SPECTRAL_DSN }}
spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/SpectralOps/spectral-github-action --include-tags base,audit --ok
Expand Down

0 comments on commit 0030cae

Please sign in to comment.