Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

permissions:
contents: write

jobs:
ci:
permissions:
Expand All @@ -17,6 +20,8 @@ jobs:

create_release:
name: Create Release
permissions:
contents: write
needs: ci
runs-on: ubuntu-latest
env:
Expand All @@ -31,9 +36,11 @@ jobs:
steps:
- name: Is Pre-release
id: is_prerelease
env:
REF: ${{ github.ref }}
run: |
set +e
echo ${{ github.ref }} | grep "\-rc.*"
echo "${REF}" | grep "\-rc.*"
OUT=$?
if [ $OUT -eq 0 ]; then IS_PRERELEASE=true; else IS_PRERELEASE=false; fi
echo "IS_PRERELEASE=${IS_PRERELEASE}" >> "${GITHUB_OUTPUT}"
Expand Down Expand Up @@ -106,6 +113,8 @@ jobs:

update_reference_docs:
name: Update Reference Docs
permissions:
contents: read
runs-on: ubuntu-latest
needs: create_release
if: needs.create_release.outputs.is_prerelease == 'false'
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Zizmor security scan
on:
push:
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read
security-events: write

jobs:
zizmor:
uses: smallstep/workflows/.github/workflows/zizmor.yml@main
secrets: inherit
12 changes: 12 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
rules:
unpinned-uses:
config:
policies:
"smallstep/*": ref-pin
secrets-inherit:
disable: true
ref-confusion:
disable: true
dangerous-triggers:
ignore:
- triage.yml