Skip to content

Commit 8e53541

Browse files
tashianclaude
andauthored
Add actionci.yml (#431)
* Add zizmor and frizbee CI checks Add caller workflows for zizmor (security scanning) and frizbee (action pinning verification). Fix zizmor findings where applicable and add suppression config for intentional patterns. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add explicit permissions blocks, remove excessive-permissions ignores Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Replace zizmor line-number ignores with policies Use unpinned-uses config.policies with org-level wildcard and secrets-inherit disable instead of brittle per-line ignores that break whenever workflow files change. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Disable ref-confusion audit The ref-confusion audit crashes when workflows reference private repos (e.g. internal-workflows, robot) because the GITHUB_TOKEN lacks cross-repo access. Disable until zizmor supports scoping this audit or we provide a broader token. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add security-events: write to zizmor caller workflow The caller workflow's permissions are the ceiling for reusable workflows. The zizmor-action needs security-events: write to upload SARIF results to GitHub Advanced Security. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * ci: Replace separate actionlint/zizmor/frizbee with actionci.yml Consolidate the three separate workflow files into a single actionci.yml that calls the shared workflow from smallstep/workflows. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0fff58a commit 8e53541

File tree

5 files changed

+47
-18
lines changed

5 files changed

+47
-18
lines changed

.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/actionlint.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.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/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
tags:
77
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
ci:
1114
uses: smallstep/autocert/.github/workflows/ci.yml@master
@@ -14,6 +17,8 @@ jobs:
1417
create_release:
1518
name: Create Release
1619
needs: ci
20+
permissions:
21+
contents: write
1722
runs-on: ubuntu-latest
1823
env:
1924
INIT_DOCKER_IMAGE: smallstep/autocert-init
@@ -31,9 +36,11 @@ jobs:
3136
steps:
3237
- name: Is Pre-release
3338
id: is_prerelease
39+
env:
40+
REF: ${{ github.ref }}
3441
run: |
3542
set +e
36-
echo ${{ github.ref }} | grep "\-rc.*"
43+
echo "${REF}" | grep "\-rc.*"
3744
OUT=$?
3845
if [ $OUT -eq 0 ]; then IS_PRERELEASE=true; else IS_PRERELEASE=false; fi
3946
echo "IS_PRERELEASE=${IS_PRERELEASE}" >> "${GITHUB_OUTPUT}"

.github/zizmor.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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

0 commit comments

Comments
 (0)