Skip to content

Commit 0ad78ff

Browse files
Perform zizmor analysis in GitHub Actions workflow (#4840)
1 parent e377746 commit 0ad78ff

File tree

5 files changed

+37
-5
lines changed

5 files changed

+37
-5
lines changed

.github/actions/maven-central-user-token/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ runs:
1111
using: "composite"
1212
steps:
1313
- shell: bash
14-
run: |
14+
run: | # zizmor: ignore[github-env]
1515
USER_TOKEN=$(printf "${USERNAME}:${PASSWORD}" | base64)
1616
echo "::add-mask::$USER_TOKEN"
1717
echo "MAVEN_CENTRAL_USER_TOKEN=$USER_TOKEN" >> $GITHUB_ENV

.github/actions/run-gradle/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
- shell: bash
2424
env:
2525
JAVA_HOME: ${{ steps.setup-gradle-jdk.outputs.path }}
26-
run: |
26+
run: | # zizmor: ignore[template-injection]
2727
./gradlew \
2828
-Porg.gradle.java.installations.auto-download=false \
2929
-Pjunit.develocity.predictiveTestSelection.enabled=true \

.github/actions/setup-test-jdk/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ runs:
1414
java-version: 8
1515
check-latest: true
1616
- shell: bash
17-
run: echo "JDK8=$JAVA_HOME" >> $GITHUB_ENV
17+
run: echo "JDK8=$JAVA_HOME" >> $GITHUB_ENV # zizmor: ignore[github-env]
1818
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4
1919
with:
2020
distribution: ${{ inputs.distribution }}
2121
java-version: 17
2222
check-latest: true
2323
- shell: bash
24-
run: echo "JDK17=$JAVA_HOME" >> $GITHUB_ENV
24+
run: echo "JDK17=$JAVA_HOME" >> $GITHUB_ENV # zizmor: ignore[github-env]

.github/workflows/label-pull-request.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: Copy labels from linked issues to PR
2+
23
on:
34
pull_request_target:
4-
types: [opened, reopened, edited, synchronize]
5+
types: [opened, reopened, edited, synchronize] # zizmor: ignore[dangerous-triggers]
6+
57
permissions: {}
8+
69
jobs:
710
copy_labels:
811
name: Copy labels
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: GitHub Actions Security Analysis
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'releases/**'
8+
paths:
9+
- '.github/**'
10+
pull_request:
11+
paths:
12+
- '.github/**'
13+
14+
permissions: {}
15+
16+
jobs:
17+
zizmor:
18+
name: Run zizmor 🌈
19+
runs-on: ubuntu-latest
20+
permissions:
21+
security-events: write
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
with:
26+
persist-credentials: false
27+
28+
- name: Run zizmor 🌈
29+
uses: zizmorcore/zizmor-action@f52a838cfabf134edcbaa7c8b3677dde20045018 # v0.1.1

0 commit comments

Comments
 (0)