Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the executable bit on the scripts in the Actions extractor #18888

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dbartol
Copy link
Contributor

@dbartol dbartol commented Feb 27, 2025

The Bash script in the actions extractor has its executable bit set in the repo, but was losing that bit somewhere along the way from the repo checkout to the CLI zip file. The fix is to specify the scripts in the exes parameter of codeql_pkg_files rather than in the srcs parameter.

We didn't notice this because everywhere we test the Actions extractor, it's being picked up from the repo, not the CLI distribution. It also didn't affect anyone using the CodeQL Action, because the Action had an embedded copy of the actions extractor, and that copy does have the executable bit set correctly 🤦‍♂️.

@Copilot Copilot bot review requested due to automatic review settings February 27, 2025 20:03
@dbartol dbartol requested a review from a team as a code owner February 27, 2025 20:03

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

@github-actions github-actions bot added the Actions Analysis of GitHub Actions label Feb 27, 2025
@dbartol dbartol force-pushed the dbartol/actions-executable-bit branch from 8cbe0d1 to ac555ff Compare February 27, 2025 20:06
@dbartol dbartol added the no-change-note-required This PR does not need a change note label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Analysis of GitHub Actions no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant