How should I fix zizmor audits? #957
-
|
Hello there! I think zizmor is potentially quite useful but, unlike other tools I use like ruff, I hardly know what fix I need to make. See: How should I fix this? If you it would be too much of a hassle to just add the suggestions, I think it would still be cool to print out the URL to the docs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi @baggiponte, thanks for opening a discussion! There are a few different parts here:
- name: Build with Hugo
env:
HUGO_ENV: production
BASE_URL: ${{ steps.pages.outputs.base_url}}
run: |
hugo ... --baseURL="${BASE_URL}/"
|
Beta Was this translation helpful? Give feedback.

Hi @baggiponte, thanks for opening a discussion!
There are a few different parts here:
Each audit has remediations documented in a sub-section of the audit docs. For
template-injectionfor example, the remediation is documented here: https://docs.zizmor.sh/audits/#remediation_18Specifically, to answer your question: in your case you would replace
${{ steps.pages.outputs.base_url }}with an environment variable, e.g.:This is printed out, although the fact that people…