Skip to content
Merged
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
22 changes: 22 additions & 0 deletions .github/workflows/actionci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Action CI

on:
push:
tags-ignore:
- 'v*'
branches:
- "master"
pull_request:
workflow_call:

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

jobs:
actionci:
permissions:
contents: read
security-events: write
uses: smallstep/workflows/.github/workflows/actionci.yml@main
secrets: inherit
17 changes: 0 additions & 17 deletions .github/workflows/actionlint.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,15 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
ci:
permissions:
actions: read
contents: read
security-events: write
uses: smallstep/workflows/.github/workflows/goCI.yml@main
with:
only-latest-golang: false
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/code-scan-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ on:
schedule:
- cron: '0 0 * * *'

permissions:
actions: read
contents: read
security-events: write

jobs:
code-scan:
uses: smallstep/workflows/.github/workflows/code-scan.yml@main
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ on:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

permissions:
contents: write

jobs:
ci:
permissions:
contents: read
uses: smallstep/certificates/.github/workflows/ci.yml@master
secrets: inherit

create_release:
name: Create Release
permissions:
contents: write
needs: ci
runs-on: ubuntu-latest
env:
Expand All @@ -25,9 +32,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
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