Skip to content

Commit 8c260fa

Browse files
claude-helper-bot[bot]claude-helper-bot[bot]
andauthored
Replace scan-snyk with scan-grype and fix workflow permissions (#857)
Co-authored-by: claude-helper-bot[bot] <3031036+claude-helper-bot[bot]@users.noreply.github.com>
1 parent e908fea commit 8c260fa

File tree

7 files changed

+47
-15
lines changed

7 files changed

+47
-15
lines changed

.github/workflows/code-checks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
branches:
77
- "**"
88

9+
permissions:
10+
actions: read
11+
contents: read
12+
913
jobs:
1014
gosec:
1115
uses: ckotzbauer/actions-toolkit/.github/workflows/toolkit-lint.yml@5eba4a9063c75ab16cc2c98722ea493f71159331 # 0.53.1

.github/workflows/create-release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
description: "Version"
88
required: true
99

10+
permissions:
11+
actions: read
12+
contents: write
13+
id-token: write
14+
packages: write
15+
1016
jobs:
1117
release:
1218
uses: ckotzbauer/actions-toolkit/.github/workflows/toolkit-release-goreleaser.yml@5eba4a9063c75ab16cc2c98722ea493f71159331 # 0.53.1

.github/workflows/release-job-image.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ on:
3434
ghcr-password:
3535
required: false
3636

37+
permissions:
38+
actions: read
39+
contents: read
40+
packages: read
41+
3742
jobs:
3843
release-job-image:
3944
permissions:

.github/workflows/review.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened]
66

7+
permissions:
8+
actions: read
9+
contents: read
10+
pull-requests: write
11+
712
jobs:
813
review:
914
uses: ckotzbauer/actions-toolkit/.github/workflows/toolkit-review.yml@5eba4a9063c75ab16cc2c98722ea493f71159331 # 0.53.1

.github/workflows/scan-grype.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: scan-grype
2+
3+
on:
4+
schedule:
5+
- cron: "0 12 * * 1"
6+
workflow_dispatch: {}
7+
8+
permissions:
9+
contents: read
10+
packages: read
11+
security-events: write
12+
13+
jobs:
14+
scan-scan:
15+
uses: ckotzbauer/actions-toolkit/.github/workflows/toolkit-scan.yml@0.55.1
16+
with:
17+
docker-tag: ghcr.io/ckotzbauer/sbom-operator:latest
18+
19+
scan-vcn:
20+
uses: ckotzbauer/actions-toolkit/.github/workflows/toolkit-scan.yml@0.55.1
21+
with:
22+
docker-tag: ghcr.io/ckotzbauer/sbom-operator/vcn:latest

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
branches:
77
- "**"
88

9+
permissions:
10+
actions: read
11+
contents: read
12+
packages: read
13+
914
jobs:
1015
test:
1116
uses: ckotzbauer/actions-toolkit/.github/workflows/toolkit-build-test.yml@5eba4a9063c75ab16cc2c98722ea493f71159331 # 0.53.1

.github/workflows/update-snyk.yml

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

0 commit comments

Comments
 (0)