Skip to content

Fix CI/CD security to follow zizmor recommendations - #273

Merged
applejag merged 1 commit into
mainfrom
chore/use-zizmor-linting
Oct 1, 2025
Merged

applejag merged 1 commit into
mainfrom
chore/use-zizmor-linting

Conversation

@applejag

Copy link
Copy Markdown
Member

Description

Securing our CI/CD pipeline using Zizmor

Type of change

  • Chore (doesn't directly affect users, e.g refactoring or CI/CD changes)

Changes

  • Pinned actions by changing from uses: ...@v1.2.3 to uses: ...@some-commit # @v1.2.3
  • Disable cache in release pipeline to prevent cache poisoning
  • Set appropriate permissions everywhere
  • Set persist-credentials: false on actions/checkout where credentials are not needed

Motivation

Securing CI/CD is important. I found this tool in a OpenSourceSecurity podcast episode and have rolled this out at work to great success.

Now I'm starting to apply it to some open source projects too.

@applejag
applejag requested a review from a team as a code owner September 28, 2025 10:55
@applejag applejag added the chore Routine task, refactoring, or other changes not affecting end-users directly. label Sep 28, 2025
@applejag applejag self-assigned this Sep 28, 2025
@applejag
applejag requested a review from prune998 September 28, 2025 10:55
@github-actions github-actions Bot added the github_actions Pull requests that update GitHub Actions code label Sep 28, 2025
@github-advanced-security

Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@codecov

codecov Bot commented Sep 28, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.87%. Comparing base (7dcf565) to head (c31554f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #273   +/-   ##
=======================================
  Coverage   53.87%   53.87%           
=======================================
  Files          55       55           
  Lines        4783     4783           
=======================================
  Hits         2577     2577           
  Misses       2088     2088           
  Partials      118      118           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@applejag
applejag merged commit e2971a2 into main Oct 1, 2025
@applejag
applejag deleted the chore/use-zizmor-linting branch October 1, 2025 20:39
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Nov 4, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [kubecolor/kubecolor](https://github.com/kubecolor/kubecolor) | patch | `v0.5.2` -> `v0.5.3` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>kubecolor/kubecolor (kubecolor/kubecolor)</summary>

### [`v0.5.3`](https://github.com/kubecolor/kubecolor/releases/tag/v0.5.3)

[Compare Source](kubecolor/kubecolor@v0.5.2...v0.5.3)

#### What's Changed

##### Vulnerabilities

1. [GO-2025-4010](https://pkg.go.dev/vuln/GO-2025-4010) / CVE-2025-47912
2. [GO-2025-4011](https://pkg.go.dev/vuln/GO-2025-4011) / CVE-2025-58185

Both are minor vulnerabilities in the Go standard library regarding network. Kubecolor does not use the network at all.

##### Features

- add more missing error status colorizing by [@&#8203;larsgerber](https://github.com/larsgerber) in [#&#8203;274](kubecolor/kubecolor#274)

  - `PreCreateHookError`
  - `PreStartHookError`
  - `PostStartHookError`
  - `CreateContainerConfigError`
  - `CreateContainerError`

##### Dependencies

- Switch from bitnami/kubectl to registry.k8s.io/kubectl by [@&#8203;applejag](https://github.com/applejag) in [#&#8203;276](kubecolor/kubecolor#276)
- Bump docker/login-action from 3.5.0 to 3.6.0 in the all group by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;277](kubecolor/kubecolor#277)
- Bump the all group with 2 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;281](kubecolor/kubecolor#281)
- Go 1.25.3 to resolve CVE-2025-58185 & CVE-2025-47912 by [@&#8203;applejag](https://github.com/applejag) in [#&#8203;283](kubecolor/kubecolor#283)

##### Other

- Fix CI/CD security to follow zizmor recommendations by [@&#8203;applejag](https://github.com/applejag) in [#&#8203;273](kubecolor/kubecolor#273)

**Full Changelog**: <kubecolor/kubecolor@v0.5.2...v0.5.3>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNjkuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE2OS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Routine task, refactoring, or other changes not affecting end-users directly. github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants