Skip to content

Conversation

@kanglant
Copy link
Contributor

No description provided.

defaults:
run:
shell: bash
jobs:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Huh, i though zizmor should have flagged this but missing a permisions:{} block

Comment on lines +21 to +23
if: |
github.event.sender.type == 'User' ||
contains(github.event.pull_request.body, 'RUN_BUILDIFIER')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Like the other one i think we should just run it, the only bot we have is one we would want to have PRs run against anyway. For example if dependabot updates the sha of checkouts below, or of the aciton.yaml.

I am more strongly suspecting XLA did this to prevent running on copybara created PRs.

Comment on lines +21 to +23
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0 # Fetch full history for accurate diffing
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same convo as the other one but we can have that conversation over there

# Compare PR head against the base branch to find changed files.
GIT_DIFF_CMD="git diff -z --name-only --diff-filter=d origin/$TARGET_BRANCH HEAD -- $FILE_PATTERNS"

$GIT_DIFF_CMD | xargs -0 buildifier --mode=check -v
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as other, we need to decide what we do if its a push event.

Do you know how long buildifier takes to run on the entire JAX repo?

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