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:
- "main"
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
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,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: true
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 * * SUN'

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

jobs:
code-scan:
uses: smallstep/workflows/.github/workflows/code-scan.yml@main
Expand Down
11 changes: 9 additions & 2 deletions .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: read

jobs:
ci:
uses: smallstep/sequel/.github/workflows/ci.yml@main
Expand All @@ -14,19 +17,23 @@ jobs:
create_release:
name: Create Release
needs: ci
permissions:
contents: write
runs-on: ubuntu-latest
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}"
- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
14 changes: 14 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
rules:
unpinned-uses:
config:
policies:
"smallstep/*": ref-pin
secrets-inherit:
disable: true
ref-confusion:
disable: true
archived-uses:
ignore:
- release.yml
dependabot-cooldown:
disable: true