Skip to content

chore: security hardening for CI/CD and file permissions - #99

Merged
Stensel8 merged 1 commit into
mainfrom
claude/twee-fixes-krov0i
Aug 22, 2026
Merged

chore: security hardening for CI/CD and file permissions#99
Stensel8 merged 1 commit into
mainfrom
claude/twee-fixes-krov0i

Conversation

@Stensel8

@Stensel8 Stensel8 commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

This PR addresses two security issues: (1) prevents execution of attacker-controlled scripts from forked PRs in the update-checksums workflow by validating the head repository, and (2) restricts CA certificate file permissions to owner-only access.

- saxion-eduroam.py: write the pinned CA cert with 0600 instead of 0644;
  NetworkManager reads it as root regardless, so world-readable adds
  nothing but exposure (CodeQL alert #25).
- update-checksums.yml: require the PR head repo to match the base repo
  before checking out and executing github.head_ref with a write token,
  closing the fork-PR pwn-request path CodeQL flagged (alert #24).
Copilot AI lite review requested due to automatic review settings August 22, 2026 22:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Stensel8 Stensel8 self-assigned this Aug 22, 2026
@Stensel8
Stensel8 merged commit 728dad6 into main Aug 22, 2026
15 checks passed
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.

3 participants