Skip to content

workflows/scheduled: fix template-injection zizmor warnings#195308

Merged
bevanjkay merged 1 commit into
masterfrom
zizmor-scheduled-template-injection
Dec 15, 2024
Merged

workflows/scheduled: fix template-injection zizmor warnings#195308
bevanjkay merged 1 commit into
masterfrom
zizmor-scheduled-template-injection

Conversation

@samford

@samford samford commented Dec 15, 2024

Copy link
Copy Markdown
Member

Important: Do not tick a checkbox if you haven’t performed its action. Honesty is indispensable for a smooth review process.

In the following questions <cask> is the token of the cask you're submitting.

After making any changes to a cask, existing or new, verify:

Additionally, if adding a new cask:

  • Named the cask according to the token reference.
  • Checked the cask was not already refused (add your cask's name to the end of the search field).
  • brew audit --cask --new <cask> worked successfully.
  • HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask <cask> worked successfully.
  • brew uninstall --cask <cask> worked successfully.

This updates workflows/scheduled.yml to use environment variables to address template-injection warnings from zizmor. This borrows the general approach from similar fixes in the Homebrew/actions and Homebrew/homebrew-test-bot repositories.

I'm not very knowledgeable about GitHub Actions, so I've set this as a draft until more knowledgeable maintainers have had a chance to check my work and identify any issues.

Comment thread .github/workflows/scheduled.yml Outdated
This updates `workflows/scheduled.yml` to use environment variables
to address `template-injection` warnings from `zizmor`. This borrows
the general approach from similar fixes in the Homebrew/actions and
Homebrew/homebrew-test-bot repositories.

This also updates `github.*` references with default environment
variables provided by GitHub (where available).
@samford samford force-pushed the zizmor-scheduled-template-injection branch from 4802e20 to ad2a8d6 Compare December 15, 2024 18:59
@samford samford changed the title workflows/scheduled: fix template-injection zizmor findings workflows/scheduled: fix template-injection zizmor warnings Dec 15, 2024
@samford samford marked this pull request as ready for review December 15, 2024 19:09
@bevanjkay bevanjkay merged commit 0450a34 into master Dec 15, 2024
@bevanjkay bevanjkay deleted the zizmor-scheduled-template-injection branch December 15, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants