ci(security): add dependency review and actionlint

This commit is contained in:
sickn33
2026-03-31 18:05:41 +02:00
parent 4abcf8ccf5
commit 61d798a104
2 changed files with 54 additions and 0 deletions

33
.github/workflows/actionlint.yml vendored Normal file
View 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
View 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