Skip to content

Commit 0aad02c

Browse files
authored
Merge pull request #1 from RiskIdent/feature/zizmor
Add zizmor
2 parents 9e1ad1e + 096a100 commit 0aad02c

3 files changed

Lines changed: 58 additions & 7 deletions

File tree

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-FileCopyrightText: HashiCorp, Inc.
2+
# SPDX-FileCopyrightText: 2023 Risk.Ident GmbH <contact@riskident.com>
3+
#
4+
# SPDX-License-Identifier: MPL-2.0
5+
6+
# See GitHub's documentation for more information on this file:
7+
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
8+
version: 2
9+
updates:
10+
- package-ecosystem: "github-actions"
11+
directory: "/"
12+
schedule:
13+
interval: "daily"
14+
cooldown:
15+
default-days: 7
16+
17+
- package-ecosystem: "gomod"
18+
directory: "/"
19+
schedule:
20+
interval: "daily"
21+
cooldown:
22+
default-days: 7

.github/workflows/docker-publish.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ jobs:
1919

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
persist-credentials: false
2325

2426
- name: Set up Docker Buildx
25-
uses: docker/setup-buildx-action@v3
27+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
2628

2729
- name: Log in to Container Registry
28-
uses: docker/login-action@v3
30+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
2931
with:
3032
registry: ${{ env.REGISTRY }}
3133
username: ${{ github.actor }}
@@ -35,21 +37,21 @@ jobs:
3537
id: version
3638
run: |
3739
# Remove 'v' prefix from tag (v1.0.11 -> 1.0.11)
38-
VERSION=${GITHUB_REF_NAME#v}
39-
echo "version=$VERSION" >> $GITHUB_OUTPUT
40+
VERSION="${GITHUB_REF_NAME#v}"
41+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
4042
echo "Version: $VERSION"
4143
4244
- name: Extract metadata for Docker
4345
id: meta
44-
uses: docker/metadata-action@v5
46+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
4547
with:
4648
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4749
tags: |
4850
type=raw,value=latest
4951
type=raw,value=${{ steps.version.outputs.version }}
5052
5153
- name: Build and push Docker image
52-
uses: docker/build-push-action@v5
54+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
5355
with:
5456
context: .
5557
push: true
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SPDX-FileCopyrightText: 2023 Risk.Ident GmbH <contact@riskident.com>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
name: github-actions
6+
on:
7+
push:
8+
branches:
9+
- "main"
10+
pull_request:
11+
12+
permissions: {}
13+
14+
jobs:
15+
zizmor:
16+
name: Run zizmor 🌈
17+
runs-on: ubuntu-latest
18+
permissions:
19+
security-events: write
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
persist-credentials: false
25+
26+
- name: Run zizmor 🌈
27+
uses: zizmorcore/zizmor-action@0dce2577a4760a2749d8cfb7a84b7d5585ebcb7d # v0.5.0

0 commit comments

Comments
 (0)