Skip to content

build: Add zizmor workflow and harden CI/CD a bit#162

Open
hashcatHitman wants to merge 9 commits intotrifectatechfoundation:mainfrom
hashcatHitman:zizmor
Open

build: Add zizmor workflow and harden CI/CD a bit#162
hashcatHitman wants to merge 9 commits intotrifectatechfoundation:mainfrom
hashcatHitman:zizmor

Conversation

@hashcatHitman
Copy link

This PR adds a workflow using the zizmor GitHub action to scan workflows for possible weaknesses. It is based on the zizmor workflow skeleton provided in the documentation for zizmor.

It also addresses the issues found by zizmor by default. More findings are available using stricter configurations of zizmor (pedantic/auditor).

This PR does NOT update the version used for any workflows.

Based on the workflow skeleton found here:

https://docs.zizmor.sh/integrations/#via-zizmorcorezizmor-action

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
From https://github.com/actions/checkout/tree/v4.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
From https://github.com/actions/setup-node/tree/v4.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
From https://github.com/peaceiris/actions-mdbook/tree/v2.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
From https://github.com/actions/configure-pages/tree/v5.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
From https://github.com/actions/upload-pages-artifact/tree/v3.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
From https://github.com/actions/deploy-pages/tree/v4.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
No signs of ArtiPACKED here yet, but it doesn't hurt to harden things.
Plus, using a pre-v6 version of `actions/checkout` means we're missing
some of the modern protections against ArtiPACKED.

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
See https://docs.zizmor.sh/audits/#excessive-permissions

Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant