[wp-trac] [WordPress Trac] #62416: Switch to using local references for reusable workflows
WordPress Trac
noreply at wordpress.org
Wed Nov 13 19:07:58 UTC 2024
#62416: Switch to using local references for reusable workflows
------------------------------+--------------------
Reporter: johnbillion | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.8
Component: Build/Test Tools | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+--------------------
Reusable workflows used within GitHub Actions are currently referenced
using their remote syntax, eg:
{{{
uses: WordPress/wordpress-develop/{workflow}.yml at trunk
}}}
As these workflows are actually local files, their references can be
updated to local ones:
{{{
uses: ./{workflow}.yml
}}}
The benefit of this is that when PRs are made to make changes to a
reusable workflow, the references doesn't need to be updated to point to
the fork in order for the changed workflow to run.
@desrosj flagged there might be a security concern with such a change. I
don't believe there is, but it's worth double checking.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62416>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list