GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Only run check SIP enablement once in `init` step by angelapwen · Pull Request #2441 · github/codeql-action

Conversation

@angelapwen

@angelapwen angelapwen commented Aug 22, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

In #2434 we stopped calling the df system binary on MacOS ARM runners where SIP was disabled, but the actual call to csrutil itself was run again and is also a binary 😸

This change makes it so that csrutil is only called once, in the init step before the build tracer environment variables are set, and then its result is saved in an environment variable.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@angelapwen
Only run check SIP enablement once in init step
72f3573
@angelapwen angelapwen mentioned this pull request Aug 22, 2024
Stop checking disk usage for MacOS ARM with SIP disabled #2434
Merged
3 tasks done
@angelapwen
angelapwen requested a review from aibaars August 22, 2024 23:22
@angelapwen
Add CHANGELOG entry
7140659
@angelapwen
angelapwen marked this pull request as ready for review August 23, 2024 00:02
@angelapwen
angelapwen requested a review from a team as a code owner August 23, 2024 00:02
@angelapwen angelapwen mentioned this pull request Aug 23, 2024
Error: Command failed: df -Pk when using macos-14 runners (macos-latest) github/codeql#16948
Closed
henrymercer
henrymercer previously approved these changes Aug 23, 2024
View reviewed changes
Comment thread src/util.ts Outdated
export async function checkSipEnablement(
logger: Logger,
): Promise<boolean | undefined> {
if (process.env[EnvVar.IS_SIP_ENABLED] !== undefined) {

@henrymercer henrymercer Aug 23, 2024

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

We may also want to check that it's not the empty string (or defensively that it's either "true" or "false")

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@angelapwen angelapwen Aug 23, 2024

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I can check if it's "true" or "false" 👍 good suggestion!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@angelapwen
Add stricter check for environment variable value
bd123c8
@angelapwen
angelapwen dismissed henrymercer’s stale review via bd123c8 August 23, 2024 15:30
@angelapwen
angelapwen requested a review from henrymercer August 23, 2024 15:30
henrymercer
henrymercer previously approved these changes Aug 23, 2024
View reviewed changes
Comment thread src/util.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@angelapwen @henrymercer
Update src/util.ts
1570300
Co-authored-by: Henry Mercer <[email protected]>
@angelapwen
angelapwen dismissed henrymercer’s stale review via 1570300 August 23, 2024 15:42
@angelapwen angelapwen added the Rebuild Re-transpile JS & re-generate workflows label Aug 23, 2024
@github-actions github-actions Bot removed the Rebuild Re-transpile JS & re-generate workflows label Aug 23, 2024
@github-actions
Rebuild
b406044
@github-actions

github-actions Bot commented Aug 23, 2024

Copy link
Copy Markdown
Contributor

Pushed a commit to rebuild the Action. Please mark the PR as ready for review to trigger PR checks.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions
github-actions Bot marked this pull request as draft August 23, 2024 15:44
@angelapwen
angelapwen marked this pull request as ready for review August 23, 2024 15:47
henrymercer
henrymercer approved these changes Aug 23, 2024
View reviewed changes
@angelapwen
angelapwen merged commit 7e27807 into main Aug 23, 2024
@angelapwen
angelapwen deleted the angelapwen/fix-csrutil-call branch August 23, 2024 16:17
@github-actions github-actions Bot mentioned this pull request Aug 23, 2024
Merge main into releases/v3 #2444
Merged
6 of 8 tasks
angelapwen added a commit that referenced this pull request Aug 23, 2024
@angelapwen @github-actions @henrymercer
Merge main into releases/v3 (#2444)
2c779ab
* Update changelog and version after v3.26.4

* Update checked-in dependencies

* Only run check SIP enablement once in `init` step (#2441)

Co-authored-by: Henry Mercer <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update changelog for v3.26.5

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Angela P Wen <[email protected]>
Co-authored-by: Henry Mercer <[email protected]>
@github-actions github-actions Bot mentioned this pull request Aug 23, 2024
Merge releases/v3 into releases/v2 #2446
Merged
8 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@henrymercer henrymercer henrymercer approved these changes
@aibaars aibaars Awaiting requested review from aibaars

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@angelapwen @henrymercer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.