Build: Add dependency and security automation (#448)

This commit is contained in:
Minseok Song
2026-06-29 16:42:51 +09:00
committed by GitHub
parent 707415940f
commit 126fcd1fb7
3 changed files with 116 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "09:00"
timezone: "Etc/UTC"
labels:
- "build"
- "dependencies"
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "09:00"
timezone: "Etc/UTC"
labels:
- "build"
- "dependencies"
open-pull-requests-limit: 5
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "09:00"
timezone: "Etc/UTC"
labels:
- "build"
- "dependencies"
open-pull-requests-limit: 5
+38
View File
@@ -0,0 +1,38 @@
name: CodeQL
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "32 4 * * 1"
workflow_dispatch:
permissions:
actions: read
contents: read
security-events: write
concurrency:
group: codeql-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze Python
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:python"
+41
View File
@@ -0,0 +1,41 @@
name: OpenSSF Scorecard
on:
branch_protection_rule:
schedule:
- cron: "47 4 * * 1"
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
id-token: write
security-events: write
concurrency:
group: scorecard-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
scorecard:
name: Scorecard
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Run Scorecard
uses: ossf/scorecard-action@v2.4.0
with:
results_file: scorecard.sarif
results_format: sarif
publish_results: true
- name: Upload Scorecard SARIF
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: scorecard.sarif