diff options
| author | Theo Buehler <tb@openbsd.org> | 2026-08-14 14:50:12 +0200 |
|---|---|---|
| committer | Theo Buehler <tb@openbsd.org> | 2026-08-14 15:47:51 +0200 |
| commit | e07df6da53a0ae5c07383546b7219577a68610cd (patch) | |
| tree | b9cae26a2cb4a63192927c1032fe30752409d899 | |
| parent | 0e1a7af560f468066d08f95760306ccfed3c4bd9 (diff) | |
| download | portable-e07df6da53a0ae5c07383546b7219577a68610cd.tar.gz portable-e07df6da53a0ae5c07383546b7219577a68610cd.tar.bz2 portable-e07df6da53a0ae5c07383546b7219577a68610cd.zip | |
zizmor: set persist-credentials
per zizmor, actions/checkout should be followed by removal of credentials that
may have been saved to disk. Doing so fixes lots of whining such as:
```
warning[artipacked]: credential persistence through GitHub Actions artifacts
--> ./.github/workflows/android.yml:27:9
|
27 | - name: "Checkout repository"
| _________^
28 | | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
| |________________________________________________________________________________^ does not set persist-credentials: false
|
= note: audit confidence → Low
= note: this finding has an auto-fix
```
| -rw-r--r-- | .github/workflows/android.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/cmake-config.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/coverity.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/emscripten.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/fedora-rawhide.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/freebsd.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/linux.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/macos.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/rust-openssl.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/solaris.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/windows.yml | 2 |
11 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index a2faa94..d9d3b36 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml | |||
| @@ -26,6 +26,8 @@ jobs: | |||
| 26 | steps: | 26 | steps: |
| 27 | - name: "Checkout repository" | 27 | - name: "Checkout repository" |
| 28 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 28 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 29 | with: | ||
| 30 | persist-credentials: false | ||
| 29 | 31 | ||
| 30 | - name: "Install build dependencies" | 32 | - name: "Install build dependencies" |
| 31 | run: | | 33 | run: | |
diff --git a/.github/workflows/cmake-config.yml b/.github/workflows/cmake-config.yml index 5b57b78..493242d 100644 --- a/.github/workflows/cmake-config.yml +++ b/.github/workflows/cmake-config.yml | |||
| @@ -25,6 +25,8 @@ jobs: | |||
| 25 | steps: | 25 | steps: |
| 26 | - name: "Checkout repository" | 26 | - name: "Checkout repository" |
| 27 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 27 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 28 | with: | ||
| 29 | persist-credentials: false | ||
| 28 | 30 | ||
| 29 | - name: "Setup Windows dependencies" | 31 | - name: "Setup Windows dependencies" |
| 30 | if: runner.os == 'Windows' | 32 | if: runner.os == 'Windows' |
diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index f00e2a2..33aba2e 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml | |||
| @@ -23,6 +23,8 @@ jobs: | |||
| 23 | steps: | 23 | steps: |
| 24 | - name: "Checkout repository" | 24 | - name: "Checkout repository" |
| 25 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 25 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 26 | with: | ||
| 27 | persist-credentials: false | ||
| 26 | 28 | ||
| 27 | - name: "Install dependencies" | 29 | - name: "Install dependencies" |
| 28 | run: | | 30 | run: | |
diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml index 914446b..ba0eb02 100644 --- a/.github/workflows/emscripten.yml +++ b/.github/workflows/emscripten.yml | |||
| @@ -21,6 +21,8 @@ jobs: | |||
| 21 | steps: | 21 | steps: |
| 22 | - name: "Checkout repository" | 22 | - name: "Checkout repository" |
| 23 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 23 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 24 | with: | ||
| 25 | persist-credentials: false | ||
| 24 | 26 | ||
| 25 | - name: "Install test dependencies" | 27 | - name: "Install test dependencies" |
| 26 | run: | | 28 | run: | |
| @@ -55,6 +57,8 @@ jobs: | |||
| 55 | steps: | 57 | steps: |
| 56 | - name: "Checkout repository" | 58 | - name: "Checkout repository" |
| 57 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 59 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 60 | with: | ||
| 61 | persist-credentials: false | ||
| 58 | 62 | ||
| 59 | - name: "Install test dependencies" | 63 | - name: "Install test dependencies" |
| 60 | run: | | 64 | run: | |
diff --git a/.github/workflows/fedora-rawhide.yml b/.github/workflows/fedora-rawhide.yml index c3dd8a8..4ae9158 100644 --- a/.github/workflows/fedora-rawhide.yml +++ b/.github/workflows/fedora-rawhide.yml | |||
| @@ -24,6 +24,8 @@ jobs: | |||
| 24 | image: fedora:rawhide@sha256:0c1f63ed8fb818fad16cf6ae091598c410a21d2e1a9adf183beb93189299bfba | 24 | image: fedora:rawhide@sha256:0c1f63ed8fb818fad16cf6ae091598c410a21d2e1a9adf183beb93189299bfba |
| 25 | steps: | 25 | steps: |
| 26 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 26 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 27 | with: | ||
| 28 | persist-credentials: false | ||
| 27 | - name: Install dependencies | 29 | - name: Install dependencies |
| 28 | run: | | 30 | run: | |
| 29 | dnf -y install git make clang cmake ninja-build autoconf automake libtool diffutils patch gawk perl-IO-Socket-SSL | 31 | dnf -y install git make clang cmake ninja-build autoconf automake libtool diffutils patch gawk perl-IO-Socket-SSL |
diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index b0f8390..d457941 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml | |||
| @@ -23,6 +23,8 @@ jobs: | |||
| 23 | steps: | 23 | steps: |
| 24 | - name: "Checkout repository" | 24 | - name: "Checkout repository" |
| 25 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 25 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 26 | with: | ||
| 27 | persist-credentials: false | ||
| 26 | 28 | ||
| 27 | - name: "Setup" | 29 | - name: "Setup" |
| 28 | run: | | 30 | run: | |
| @@ -51,6 +53,8 @@ jobs: | |||
| 51 | steps: | 53 | steps: |
| 52 | - name: "Checkout repository" | 54 | - name: "Checkout repository" |
| 53 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 55 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 56 | with: | ||
| 57 | persist-credentials: false | ||
| 54 | 58 | ||
| 55 | - name: "Setup" | 59 | - name: "Setup" |
| 56 | run: | | 60 | run: | |
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 4fbe987..a2a85e7 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml | |||
| @@ -48,6 +48,8 @@ jobs: | |||
| 48 | steps: | 48 | steps: |
| 49 | - name: "Checkout repository" | 49 | - name: "Checkout repository" |
| 50 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 50 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 51 | with: | ||
| 52 | persist-credentials: false | ||
| 51 | 53 | ||
| 52 | - name: "Install test dependencies" | 54 | - name: "Install test dependencies" |
| 53 | run: | | 55 | run: | |
| @@ -100,6 +102,8 @@ jobs: | |||
| 100 | steps: | 102 | steps: |
| 101 | - name: "Checkout repository" | 103 | - name: "Checkout repository" |
| 102 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 104 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 105 | with: | ||
| 106 | persist-credentials: false | ||
| 103 | 107 | ||
| 104 | - name: "Install test dependencies" | 108 | - name: "Install test dependencies" |
| 105 | run: | | 109 | run: | |
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index c619b17..1aabcd8 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml | |||
| @@ -34,6 +34,8 @@ jobs: | |||
| 34 | 34 | ||
| 35 | - name: "Checkout repository" | 35 | - name: "Checkout repository" |
| 36 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 36 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 37 | with: | ||
| 38 | persist-credentials: false | ||
| 37 | 39 | ||
| 38 | - name: "Run tests" | 40 | - name: "Run tests" |
| 39 | run: ./scripts/test | 41 | run: ./scripts/test |
diff --git a/.github/workflows/rust-openssl.yml b/.github/workflows/rust-openssl.yml index 37d377f..600d15a 100644 --- a/.github/workflows/rust-openssl.yml +++ b/.github/workflows/rust-openssl.yml | |||
| @@ -20,6 +20,8 @@ jobs: | |||
| 20 | steps: | 20 | steps: |
| 21 | - name: "Checkout repository" | 21 | - name: "Checkout repository" |
| 22 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 22 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 23 | with: | ||
| 24 | persist-credentials: false | ||
| 23 | 25 | ||
| 24 | - name: "Build LibreSSL" | 26 | - name: "Build LibreSSL" |
| 25 | run: | | 27 | run: | |
diff --git a/.github/workflows/solaris.yml b/.github/workflows/solaris.yml index 0e50f5f..ddaca56 100644 --- a/.github/workflows/solaris.yml +++ b/.github/workflows/solaris.yml | |||
| @@ -20,6 +20,8 @@ jobs: | |||
| 20 | steps: | 20 | steps: |
| 21 | - name: "Checkout repository" | 21 | - name: "Checkout repository" |
| 22 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 22 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 23 | with: | ||
| 24 | persist-credentials: false | ||
| 23 | 25 | ||
| 24 | - name: "Setup" | 26 | - name: "Setup" |
| 25 | run: | | 27 | run: | |
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 908e081..7199214 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml | |||
| @@ -34,6 +34,8 @@ jobs: | |||
| 34 | steps: | 34 | steps: |
| 35 | - name: "Checkout repository" | 35 | - name: "Checkout repository" |
| 36 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | 36 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 37 | with: | ||
| 38 | persist-credentials: false | ||
| 37 | 39 | ||
| 38 | - name: "Setup MSYS2" | 40 | - name: "Setup MSYS2" |
| 39 | id: msys2 | 41 | id: msys2 |
