ci(security): add dependency review and actionlint
This commit is contained in:
33
.github/workflows/actionlint.yml
vendored
Normal file
33
.github/workflows/actionlint.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Actionlint
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- ".github/workflows/**"
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- ".github/workflows/**"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
actionlint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Download actionlint
|
||||
env:
|
||||
ACTIONLINT_VERSION: "1.7.12"
|
||||
run: |
|
||||
set -euo pipefail
|
||||
curl -fsSLO "https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
|
||||
tar -xzf "actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
|
||||
|
||||
- name: Run actionlint
|
||||
run: ./actionlint -color
|
||||
21
.github/workflows/dependency-review.yml
vendored
Normal file
21
.github/workflows/dependency-review.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Dependency Review
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
dependency-review:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Dependency Review
|
||||
uses: actions/dependency-review-action@v4
|
||||
with:
|
||||
fail-on-severity: high
|
||||
fail-on-scopes: runtime
|
||||
Reference in New Issue
Block a user