Skip to content

Update workflows - #3462

Merged
remibetin merged 4 commits into
mainfrom
wai-workflows
Nov 13, 2026
Merged

remibetin merged 4 commits into
mainfrom
wai-workflows

Conversation

@remibetin

@remibetin remibetin commented Aug 14, 2026 •

Copy link
Copy Markdown
Member

This PR:

  • pins actions to a full-length commit SHA, following GitHub's recommendations
  • bumps checkout from v6 to v7.0.1
  • bumps setup-node from v4 to v7.0.0
  • sets more specific permissions
  • do not trigger create-pr-wai for forks

The workflow was tested successfully in forks.


WAI Preview Link (Last built on Wed, 04 Nov 2026 16:58:58 GMT).

Comment thread .github/workflows/wai-trigger-pr.yml Resolved
@deniak

deniak commented Nov 5, 2026

Copy link
Copy Markdown
Member

@remibetin there's still one tiny comment left but otherwise, the PR looks good to me!

@remibetin

Copy link
Copy Markdown
Member Author

@deniak Which one?

Note that I intend to check on a few more things next week.

@deniak

deniak commented Nov 6, 2026

Copy link
Copy Markdown
Member

@deniak Which one?

Note that I intend to check on a few more things next week.

Sorry, I forgot to submit the comment: #3462 (review)

@remibetin
remibetin marked this pull request as ready for review November 13, 2026 00:05
@remibetin remibetin changed the title [Draft] Update workflows Update workflows Nov 13, 2026
@remibetin
remibetin merged commit f14b249 into main Nov 13, 2026
5 checks passed
@remibetin
remibetin deleted the wai-workflows branch November 13, 2026 00:49
@mcking65

Copy link
Copy Markdown
Contributor

@remibetin
since this was merged, the workflow to create PRs in wai-aria-practices for previews is not working at all. #3490 is an example. Could you please do something to make it work for #3490?

@mcking65

mcking65 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

@remibetin @daniel-montalvo

One other note ... due to something in this PR, it is now quite a bit more complicated to make a preview for a PR from a fork. I wonder if the changes that create the additional layer of complexity are truly necessary?

Here is how I experience the extra complexity.

Previously I was able to gen a preview for a PR coming from a fork by:

  1. Check out the incoming PR branch locally.
  2. Push the commits in the branch to origin, making a new branch in aria-practices.
  3. Create a "Preview only PR" for the new branch in aria-practices.
  4. Provide a link to the preview in the incoming PR.
  5. If the incoming PR is updated, pull those commits and then push them to origin.

This is what I did for #3479.

While this is a pain compared to previews being auto-generated, it's reasonably efficient and gives me an opportunity to inspect the commits in the incoming PR before pushing them into aria-practices.

Now, if I follow the above procedure, the workflow to trigger a preview fails. It doesn't use my branch in aria-practices, it sees the commits as coming from the fork and fails because it says the pull_request_target event event was triggered.

For example, look at this run from PR 3487. Look at step2:3 under the 'Run actions/checkout@v5' step. That same step worked fine in PR 3479.

Since this PR, the only way I can get that step to pass is to do the following:

  1. Make a new local preview branch.
  2. Check out the incoming PR branch locally.
  3. Merge the incoming PR branch into the preview branch.
  4. Push the new preview branch to origin.
  5. Create a "Preview only PR" for the PR preview branch in aria-practices.
  6. Provide a link to the preview in the incoming PR.
  7. If the incoming PR is updated, fetch those commits, merge the incoming PR branch into the preview branch, and push the preview branch to origin.

This is what I did in #3490.

The merge step makes this all feel quite a bit more complex. That seems to be the only way I can avoid the pull_request_target event from being triggered and causing the workflow to fail.

Is there a way we can simplify this?

@remibetin

Copy link
Copy Markdown
Member Author

@remibetin
since this was merged, the workflow to create PRs in wai-aria-practices for previews is not working at all. #3490 is an example. Could you please do something to make it work for #3490?

Thanks for bringing this to my attention! For background, this happened because I had not pinned one action in the wai-aria-practices repository to a full-length commit SHA, while I concurrently made it a requirement. This was fixed by w3c/wai-aria-practices#497

@remibetin

Copy link
Copy Markdown
Member Author

The merge step makes this all feel quite a bit more complex. That seems to be the only way I can avoid the pull_request_target event from being triggered and causing the workflow to fail.
Is there a way we can simplify this?

@mcking65 Thanks for bringing this to our attention. The detailed information is very helpful to investigate. I'll check a few things and come back to you.

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