GHA: set persist-credentials: false

Suggested by zizmor GHA analysis tool.

Also:
- Move GH variables within single-quotes.
- Prefer single-quotes in shell code. (tidy-up)

Ref: https://github.com/actions/checkout/issues/485
Ref: https://github.com/actions/checkout/pull/1687
Ref: https://woodruffw.github.io/zizmor/

Closes #15746
This commit is contained in:
Viktor Szakats 2024-12-15 00:45:04 +01:00
parent 9991f255dd
commit ba9fe58d43
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
13 changed files with 72 additions and 5 deletions

View file

@ -74,6 +74,8 @@ jobs:
dpkg -i libc6_*_amd64.deb
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false
- name: 'cmake build-only (out-of-tree, libssh2)'
run: |