Skip to content

Conversation

smuppand
Copy link
Contributor

@smuppand smuppand commented Jun 4, 2025

This PR introduces a GitHub Actions workflow: check-executable-permissions.yml, which scans all tracked files in pull requests to ensure only expected files have executable (+x) permissions.

🔒 Why this is useful:

Prevents accidental commits with chmod +x on README.md, docs, or config files.

Enforces consistent permissions across the repository.

Avoids noisy diffs and review confusion caused by file mode changes.

✅ Allowlisted files (example):

run.sh

Any known executable under scripts/ or utils/

You can update the allowlist inside the workflow file if needed.

@mwasilew @vnarapar 

…file modes

Adds a GitHub Actions workflow to validate that only explicitly intended files (like run.sh or executable binaries) have executable permissions.
This helps prevent accidental commits of files with incorrect modes (e.g., *.md, *.txt marked as executable).

The check runs on each PR and fails the job if any suspicious file permission is detected, improving repo hygiene and review quality.

Exemptions (e.g., run.sh) can be controlled by editing the allowlist.

Signed-off-by: Srikanth Muppandam <[email protected]>
Copy link
Contributor

@abbajaj806 abbajaj806 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@abbajaj806 abbajaj806 merged commit fc52e32 into qualcomm-linux:main Jun 17, 2025
6 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.

2 participants