Skip to content

Commit

Permalink
adjust pipeline and rules
Browse files Browse the repository at this point in the history
  • Loading branch information
frankkilcommins committed Mar 8, 2024
1 parent 7452650 commit f7a35bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pipeline-hardened.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Pipeline
on:
workflow_dispatch:
push:
branches:
- localstack-hardened

env:
PIPELINE_USER_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down Expand Up @@ -68,6 +70,7 @@ jobs:

lint-api:
name: linting-api
needs: [build-and-package]
runs-on: ubuntu-latest
steps:
# Check out the repository
Expand All @@ -83,7 +86,7 @@ jobs:
spectral_ruleset: 'owasp.spectral.yaml'

deploy:
needs: [build-and-package, lint-api]
needs: [lint-api]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion owasp.spectral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ overrides:
owasp:api4:2019-rate-limit: "off"
owasp:api1:2019-no-numeric-ids: "off"

extends: [spectral:oas, "@stoplight/spectral-owasp-ruleset"]
extends: [spectral:oas, "@stoplight/spectral-owasp-ruleset@1.4.3"]
formats:
- oas3

Expand Down

0 comments on commit f7a35bd

Please sign in to comment.