Skip to content

Fix zizmor findings#1688

Open
anujm1 wants to merge 2 commits intoqualcomm-linux:masterfrom
anujm1:zizmor
Open

Fix zizmor findings#1688
anujm1 wants to merge 2 commits intoqualcomm-linux:masterfrom
anujm1:zizmor

Conversation

@anujm1
Copy link
Contributor

@anujm1 anujm1 commented Mar 5, 2026

zizmor recommends that "checkout" action should be updated and specifically asked not to persist credentials [1] and that actions should be pinned by hash instead of tag [2]. Change all third party actions to use hash instead of tag.

[1] https://docs.zizmor.sh/audits/#artipacked
[2] https://docs.zizmor.sh/audits/#unpinned-uses

@anujm1 anujm1 marked this pull request as ready for review March 5, 2026 15:32
save_job_details: true
result_file_name: "${{ matrix.target.result_file }}"
- uses: mwasilew/github-action-matrix-outputs-write@v2
- uses: mwasilew/github-action-matrix-outputs-write@f7202d2224ebed937f287a2e2813e47fddd12bc8 # v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mwasilew can we move this one under qualcomm / qualcomm-linux / foundriesio?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can. I think I started OSR for this. Let me check it and report back here. There is also a chance I will eliminate it when refactoring the test.yml workflow.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OSR is still under review :(

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As addressed in the OSR, we need @mwasilew to provide the correct Qualcomm organization as @ricardosalveti is stating there are a few options.
@mwasilew what organization will this move under (qualcomm / qualcomm-linux / foundriesio)? In addition, what will be the repo name?

@mwasilew
Copy link
Contributor

mwasilew commented Mar 5, 2026

I think we should push this to next before merging.

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

Test run workflow

Test jobs for commit 72861a2

Test qcs615-adp-air qcs6490 qcs8300 qcs9100 qcs9100-rb8 qrb2210-rb1
boot pass pass pass pass pass pass

All jobs summary

Job ID Device State Health
155266 qcs9100-rb8 Finished Complete
155256 qcs8300 Finished Complete
155259 qrb2210-rb1 Finished Complete
155253 qcs615-adp-air Finished Complete
155254 qcs9100-rb8 Finished Incomplete
155263 qcs8300 Finished Complete
155274 qcs615-adp-air Finished Complete
155276 qrb2210-rb1 Finished Complete
155272 qcs8300 Finished Incomplete
155255 qcs8300 Finished Complete
155275 qcs6490 Finished Complete
155268 qrb2210-rb1 Finished Complete
155257 qcs615-adp-air Finished Complete
155261 qcs9100 Finished Complete
155262 qcs9100-rb8 Finished Complete
155271 qcs9100 Finished Complete
155270 qcs9100 Finished Complete
155264 qcs6490 Finished Complete
155267 qcs615-adp-air Finished Complete
155265 qcs9100 Finished Complete
155260 qrb2210-rb1 Finished Complete
155258 qcs6490 Finished Complete
155269 qcs9100-rb8 Finished Complete
155273 qcs6490 Finished Complete

@test-reporting-app
Copy link

test-reporting-app bot commented Mar 5, 2026

Test Results

 23 files   - 1   23 suites   - 1   1h 21m 16s ⏱️ - 38m 4s
  9 tests ±0    5 ✅ ±0  0 💤 ±0  4 ❌ ±0 
162 runs   - 8  158 ✅  - 4  0 💤 ±0  4 ❌  - 4 

For more details on these failures, see this check.

Results for commit 82eebe6. ± Comparison against base commit ef1247e.

♻️ This comment has been updated with latest results.

@anujm1
Copy link
Contributor Author

anujm1 commented Mar 5, 2026

Repolinter is failing. It looks like there's a list of actions that can be run maintained somewhere and for andstor/file-existence-action and todogroup/repolinter-action, the pattern to match includes tag. So, that will need to changed first.

@mynameistechno
Copy link
Contributor

Repolinter is failing. It looks like there's a list of actions that can be run maintained somewhere and for andstor/file-existence-action and todogroup/repolinter-action, the pattern to match includes tag. So, that will need to changed first.

I whitelisted the sha'd versions. Can you rerun?

anujm1 added 2 commits March 7, 2026 03:37
checkout action by default causes a credential to be persisted on disk
[1]. Versions before v6 used to store it in .git/config in checked-out
repository. v6 fixed this and stored credentials to an area [2] which is
later cleaned up.

Use v6 of the action to include the change and be more secure. Set
persist-credentials to false nonetheless as recommended by zizmor.

[1] https://docs.zizmor.sh/audits/#artipacked
[1] https://github.com/orgs/community/discussions/179107#discussioncomment-14906259

Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
GitHub [1] and zizmor [2] recommend that actions, especially third party
actions, should be pinned by hash instead of tags since tags are mutable
and can introduce vulnerabilities if a malicious actor gains access to
the action repository [3].

Change all third party actions to use hash instead of tag.

[1] https://docs.github.com/en/actions/reference/security/secure-use#using-third-party-actions
[2] https://docs.zizmor.sh/audits/#unpinned-uses
[3] https://nvd.nist.gov/vuln/detail/cve-2025-30066

Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
@anujm1
Copy link
Contributor Author

anujm1 commented Mar 6, 2026

I whitelisted the sha'd versions. Can you rerun?

Thank you, it's working now.

@github-actions
Copy link

github-actions bot commented Mar 7, 2026

Test run workflow

Test jobs for commit 82eebe6

Test qcs615-adp-air qcs6490 qcs8300 qcs9100 qcs9100-rb8 qrb2210-rb1
boot pass pass pass pass pass pass

All jobs summary

Job ID Device State Health
156297 qrb2210-rb1 Finished Complete
156296 qrb2210-rb1 Finished Complete
156283 qcs615-adp-air Finished Incomplete
156289 qcs9100 Finished Complete
156290 qcs9100-rb8 Finished Complete
156293 qrb2210-rb1 Finished Complete
156275 qcs6490 Finished Complete
156295 qcs9100-rb8 Finished Complete
156282 qcs6490 Finished Complete
156292 qcs6490 Finished Complete
156298 qcs615-adp-air Finished Complete
156279 qcs8300 Finished Complete
156285 qcs6490 Finished Complete
156281 qcs9100-rb8 Finished Complete
156287 qrb2210-rb1 Finished Complete
156276 qcs615-adp-air Finished Complete
156278 qcs9100 Finished Complete
156291 qcs8300 Finished Complete
156284 qcs9100 Finished Complete
156277 qcs8300 Finished Complete
156288 qcs615-adp-air Finished Incomplete
156286 qcs8300 Finished Complete
156294 qcs9100-rb8 Finished Complete
156280 qcs9100 Finished Complete

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.

6 participants