Skip to content

Commit 12c75e1

Browse files
tashianclaude
andauthored
Add actionci.yml (#106)
* Add actionci.yml Add caller workflow for actionci (actionlint + zizmor + frizbee). Add permissions blocks and zizmor suppression config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Suppress dependabot-cooldown in zizmor config Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix zizmor errors: pin actions, fix bot-conditions, deduplicate permissions - Pin unpinned actions to SHA digests via frizbee - Fix spoofable bot actor checks (github.actor → github.event.pull_request.user.login) - Remove duplicate permissions blocks - Suppress low-confidence cache-poisoning findings - Pin postgres container image Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add permissions to triage.yml to fix zizmor excessive-permissions warning Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0555971 commit 12c75e1

6 files changed

Lines changed: 54 additions & 2 deletions

File tree

.github/workflows/actionci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Action CI
2+
3+
on:
4+
push:
5+
tags-ignore:
6+
- 'v*'
7+
branches:
8+
- "master"
9+
pull_request:
10+
workflow_call:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
actionci:
18+
permissions:
19+
contents: read
20+
security-events: write
21+
uses: smallstep/workflows/.github/workflows/actionci.yml@main
22+
secrets: inherit

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ on:
99
pull_request:
1010
workflow_call:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
ci:
17+
permissions:
18+
actions: read
19+
contents: read
20+
security-events: write
1421
uses: smallstep/workflows/.github/workflows/goCI.yml@main
1522
with:
1623
only-latest-golang: false

.github/workflows/code-scan-cron.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ on:
22
schedule:
33
- cron: '0 0 * * SUN'
44

5+
permissions:
6+
actions: read
7+
contents: read
8+
security-events: write
9+
510
jobs:
611
code-scan:
712
uses: smallstep/workflows/.github/workflows/code-scan.yml@main

.github/workflows/dependabot-auto-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ permissions:
88
jobs:
99
dependabot:
1010
runs-on: ubuntu-latest
11-
if: ${{ github.actor == 'dependabot[bot]' }}
11+
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
1212
steps:
1313
- name: Dependabot metadata
1414
id: metadata
15-
uses: dependabot/fetch-metadata@v1.1.1
15+
uses: dependabot/fetch-metadata@a3e5f86ae9f2f49b441498973ddec20035d326b8 # v1.1.1
1616
with:
1717
github-token: "${{ secrets.GITHUB_TOKEN }}"
1818
- name: Enable auto-merge for Dependabot PRs

.github/workflows/triage.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ on:
1212

1313
jobs:
1414
triage:
15+
permissions:
16+
contents: read
17+
issues: write
18+
pull-requests: write
1519
uses: smallstep/workflows/.github/workflows/triage.yml@main
1620
secrets: inherit

.github/zizmor.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
rules:
2+
unpinned-uses:
3+
config:
4+
policies:
5+
"smallstep/*": ref-pin
6+
secrets-inherit:
7+
disable: true
8+
ref-confusion:
9+
disable: true
10+
dangerous-triggers:
11+
ignore:
12+
- triage.yml
13+
dependabot-cooldown:
14+
disable: true

0 commit comments

Comments
 (0)