Skip to content

Commit fb82f6f

Browse files
committed
add some ci
Signed-off-by: Weston Steimel <author@code.w.steimel.me.uk>
1 parent 4446aaa commit fb82f6f

4 files changed

Lines changed: 97 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: 2
2+
updates:
3+
4+
- package-ecosystem: "github-actions"
5+
open-pull-requests-limit: 10
6+
directory: "/.github/actions/bootstrap"
7+
schedule:
8+
interval: "daily"
9+
cooldown:
10+
default-days: 7
11+
12+
- package-ecosystem: "github-actions"
13+
open-pull-requests-limit: 10
14+
directory: "/.github/workflows"
15+
schedule:
16+
interval: "daily"
17+
cooldown:
18+
default-days: 7
19+
20+
- package-ecosystem: "uv"
21+
directory: "/"
22+
open-pull-requests-limit: 10
23+
schedule:
24+
interval: daily
25+
cooldown:
26+
default-days: 7
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Validate GitHub Actions"
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/**'
7+
- '.github/actions/**'
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- '.github/workflows/**'
13+
- '.github/actions/**'
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
zizmor:
20+
name: "Lint"
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
security-events: write # for uploading SARIF results
25+
steps:
26+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
27+
with:
28+
persist-credentials: false
29+
30+
- name: "Run zizmor"
31+
uses: zizmorcore/zizmor-action@0dce2577a4760a2749d8cfb7a84b7d5585ebcb7d # v0.5.0
32+
with:
33+
config: .github/zizmor.yml
34+
# Disable SARIF upload so the step is a simple pass/fail gate
35+
advanced-security: false
36+
inputs: .github

.github/workflows/validations.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Validations"
2+
on:
3+
# needed for publishing commit images on the main branch
4+
push:
5+
branches:
6+
- main
7+
8+
# needed when running from forks
9+
pull_request:
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
validate:
16+
name: "Validate"
17+
runs-on: ubuntu-latest
18+
container:
19+
image: python:3.13-alpine
20+
permissions:
21+
contents: read
22+
steps:
23+
- name: Install OS dependencies
24+
run: apk add --no-cache uv
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
26+
with:
27+
persist-credentials: false
28+
- name: ruff check
29+
run: uv run ruff check

.github/zizmor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
rules:
2+
unpinned-uses:
3+
config:
4+
policies:
5+
# anchore/workflows is an internal repository; using @main is acceptable
6+
anchore/*: any

0 commit comments

Comments
 (0)