Skip to content

CI: fix zizmor 1.9.0 warnings, shellcheck verify CI shell code, fix fallouts - #17537

Closed
vszakats wants to merge 168 commits into
curl:masterfrom
vszakats:zizmor-no-pedantic
Closed

vszakats wants to merge 168 commits into
curl:masterfrom
vszakats:zizmor-no-pedantic

Conversation

@vszakats

@vszakats vszakats commented Jun 5, 2025 •

Copy link
Copy Markdown
Member

zizmor 1.9.0 effectively bans using GHA macros within shell script
snippets. Rework them to pass GHA macro values via envs and use those
envs in shell snippets. ${{ env.* }} macros could be converted
to native env references after making their names shell-compatible.

Envs and shell commands can no longer be used in GHA macro values. Most
cases could be fixed by using literals. Passing quoted values with
spaces combined with other args also doesn't work anymore. This was
replaced by passing them separately.

Despite the initial complications, avoiding GHA macros in scripts does
seems to make the CI code reasonable cleaner. It also makes it possible
to analyze the scripts with shellcheck, finding subtle issues that went
unnoticed till now.

Also:

  • un-ignore and fix three existing zizmor template-injection issues.
  • add script to extract and shellcheck all shell code stored within GHA
    and Circle CI YAML files.
  • add CI job to run this script.
  • fix shellcheck issues discovered.
  • fix minor differences between cmake and autotools FreeBSD jobs.
  • merge cmake/autotools FreeBSD jobs to avoid developing unwanted
    differences again.
  • fix/sync quote use across shell code.
  • replace $HOME with ~ or literal where it made sense.
  • replace most brew --prefix with literals.
  • move all curl install tests to the curl-install* prefix.
  • add missing curl install tests to cygwin/msys/mingw/*bsd.
  • pipe to tar instead of storing downloads on disk.
  • drop unnecessary PKG_CONFIG_PATH when building nghttp3.

Ref: https://github.com/curl/curl/actions/runs/15461461371/job/43523546041
Ref: https://github.com/zizmorcore/zizmor/releases/tag/v1.9.0

Follow-up to e522f47 #17278

@vszakats vszakats added the CI Continuous Integration label Jun 5, 2025
@vszakats
vszakats marked this pull request as draft June 5, 2025 08:35
@vszakats vszakats changed the title GHA: zizmor 1.9.0 become more pedantic, try fixes GHA: zizmor 1.9.0 became more pedantic, try fixes Jun 5, 2025
@vszakats
vszakats force-pushed the zizmor-no-pedantic branch from 45cbaea to 8b2f826 Compare June 5, 2025 09:06
@testclutch

This comment was marked as outdated.

@vszakats
vszakats force-pushed the zizmor-no-pedantic branch from dd2e525 to f018b11 Compare June 6, 2025 17:14
@vszakats

vszakats commented Jun 6, 2025 •

Copy link
Copy Markdown
Member Author

It's caused by the cache action restoring to the wrong drive, then the build step using the wrong compiler (12.x x64 instead of 6.4.0 i686), then mismatching the CPU for libpsl (i686) at link time.

Maybe there is no fast D: drive anymore after this runner update?

@vszakats vszakats closed this in 17a6694 Jun 6, 2025
@vszakats
vszakats deleted the zizmor-no-pedantic branch June 6, 2025 19:31
vszakats added a commit that referenced this pull request Jun 10, 2025
denandz pushed a commit to denandz/curl that referenced this pull request Jun 21, 2025
vszakats added a commit that referenced this pull request Jul 7, 2025
vszakats added a commit to vszakats/curl that referenced this pull request Jan 23, 2026
There are no longer envs ending with `_VER` in Circle CI.

Follow-up to 17a6694 curl#17537
vszakats added a commit that referenced this pull request Jan 23, 2026
There are no longer envs ending with `_VER` in Circle CI config.

Follow-up to 17a6694 #17537

Closes #20412
vszakats added a commit to vszakats/curl that referenced this pull request Sep 9, 2026
GHA expressions are no longer used and no longer allowed in GHA scripts.

Follow-up to 17a6694 curl#17537
vszakats added a commit that referenced this pull request Sep 9, 2026
GHA expressions are no longer used and no longer allowed in GHA scripts.

Follow-up to 17a6694 #17537

Closes #22883
vszakats added a commit that referenced this pull request Sep 28, 2026
The build step was subsequently made verbose for all jobs. Also
`-DCMAKE_VERBOSE_MAKEFILE=ON` should only affect the Makefile generator,
not Ninja as used in these jobs.

Ref: https://cmake.org/cmake/help/latest/variable/CMAKE_VERBOSE_MAKEFILE.html
Follow-up to 17a6694 #17537
Follow-up to ac7ae08 #14826

Closes #23130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration

Development

Successfully merging this pull request may close these issues.

2 participants