From 7d7b656c212d3ae6ef47ca725219e2850ff674cf Mon Sep 17 00:00:00 2001 From: thijs Metsch Date: Wed, 30 Jul 2025 10:08:29 +0200 Subject: [PATCH] fixes based on zizmor scan results --- .github/workflows/codeql.yml | 4 +++- .github/workflows/sca.yml | 8 ++++++++ .github/workflows/test-build.yml | 6 ++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 472c94b..74c3027 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -9,7 +9,7 @@ on: jobs: analyze: name: Analyze (${{ matrix.language }}) - runs-on: ${{ 'ubuntu-latest' }} + runs-on: ubuntu-latest permissions: security-events: write packages: read @@ -28,6 +28,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + persist-credentials: false - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: diff --git a/.github/workflows/sca.yml b/.github/workflows/sca.yml index c522bc3..2e6640d 100644 --- a/.github/workflows/sca.yml +++ b/.github/workflows/sca.yml @@ -12,6 +12,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - run: | wget -q https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz tar -xvf shellcheck-stable.linux.x86_64.tar.xz @@ -22,12 +24,16 @@ jobs: name: Hadolint steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - run: wget -q https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 -O hadolint; chmod +x hadolint ; find . -type f \( -name "Dockerfile*" \) -print0 | xargs -n 1 -0 ./hadolint ; gofmt-imports: runs-on: ubuntu-latest name: Go Fmt and Go Import steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - uses: actions/setup-go@v5 with: go-version-file: 'go.mod' @@ -42,6 +48,8 @@ jobs: name: lint steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - uses: actions/setup-go@v5 with: go-version-file: 'go.mod' diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 7264e33..77b2a34 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Set up Go uses: actions/setup-go@v5 with: @@ -21,6 +23,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Set up Go uses: actions/setup-go@v5 with: @@ -31,6 +35,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Set up Go uses: actions/setup-go@v5 with: