Skip to content

Commit

Permalink
try trivy in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafernandes committed Jul 9, 2024
1 parent 7fb9efe commit 6ae8791
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: Build

on:
workflow_call:
pull_request:
branches:
- main
Expand All @@ -13,7 +14,7 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build
uses: ConsenSys/docs-gha/build@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/case.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Case check action
uses: ConsenSys/docs-gha/case@main
Expand Down
30 changes: 18 additions & 12 deletions .github/workflows/dependency_review.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
name: 'Dependency Review'
---
name: Check file name case

on: [pull_request]

permissions:
contents: read
on:
pull_request:
branches:
- main

jobs:
dependency-review:
case:
name: Check for case being inconsistent
runs-on: ubuntu-latest
strategy:
matrix:
folder: ["docs"]
permissions:
contents: read
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
- name: Dependency Review
uses: actions/dependency-review-action@v3
- uses: actions/checkout@v3

- name: Dependency review
uses: ConsenSys/docs-gha/dependency-review@main
with:
fail-on-severity: high
deny-licenses: LGPL-2.0, BSD-2-Clause
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Check for lint/build errors
name: Check for lint, spelling and link errors

on:
pull_request:
Expand All @@ -13,7 +13,7 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Lint
uses: ConsenSys/docs-gha/lint@main
Expand All @@ -27,7 +27,7 @@ jobs:
matrix:
file-extensions: [".md", ".mdx"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: LinkCheck
uses: ConsenSys/docs-gha/linkcheck@main
with:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Run trivy

on:
pull_request:
branches:
- *

jobs:
trivy:
name: Run trivy scanner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Trivy
uses: ConsenSys/docs-gha/trivy@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6ae8791

Please sign in to comment.