Skip to content

Commit 46307ea

Browse files
authored
Merge pull request #76 from eclipse-esmf/75-add-leverage-sast-for-github-action-code
Evaluate options to leverage SAST for GitHub action code
2 parents 843ded7 + 8132290 commit 46307ea

2 files changed

Lines changed: 38 additions & 3 deletions

File tree

.github/workflows/antora-build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@ on:
55
- main
66
workflow_dispatch:
77

8+
permissions: {}
9+
810
jobs:
911
build-and-deploy:
1012
runs-on: ubuntu-latest
1113

1214
steps:
1315
- name: Checkout
14-
uses: actions/checkout@v4
16+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1
1517

1618
- name: Set up JDK 17
17-
uses: actions/setup-java@v4
19+
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e #v5.1.0
1820
with:
1921
distribution: 'temurin'
2022
java-version: '17'
@@ -24,7 +26,7 @@ jobs:
2426
./mvnw -B generate-resources -Pantora
2527
2628
- name: Deploy
27-
uses: JamesIves/github-pages-deploy-action@4.0.0
29+
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
2830
with:
2931
branch: gh-pages
3032
folder: build/site

.github/workflows/zizmor.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#
2+
# Copyright (c) 2026 Robert Bosch Manufacturing Solutions GmbH, Germany. All rights reserved.
3+
#
4+
name: GitHub Actions SAST (zizmor)
5+
6+
on:
7+
pull_request:
8+
branches: [ main ]
9+
push:
10+
branches: [ main ]
11+
12+
permissions: {}
13+
14+
jobs:
15+
zizmor:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1
23+
with:
24+
persist-credentials: false
25+
26+
- name: Run zizmor (PR annotations)
27+
uses: zizmorcore/zizmor-action@e639db99335bc9038abc0e066dfcd72e23d26fb4 # v0.3.0
28+
with:
29+
advanced-security: false
30+
version: v1.22.0
31+
annotations: true
32+
persona: auditor
33+
min-severity: medium

0 commit comments

Comments
 (0)