limited-rainbow-51650
10/11/2024, 1:58 PMinfra
working:
https://github.com/pulumiverse/infra/pull/230big-architect-71258
10/11/2024, 2:19 PMbig-architect-71258
10/11/2024, 2:31 PMlimited-rainbow-51650
10/11/2024, 2:41 PMpull_request
, not `pull_request_target`: https://github.com/pulumiverse/infra/actions/runs/11294305085big-architect-71258
10/11/2024, 2:43 PMpull_request
and pull_request_target
are defined and thus should pull_request_target
before pull_request
?big-architect-71258
10/11/2024, 2:57 PMbig-architect-71258
10/11/2024, 3:01 PMpull_request_target
will now be called/triggered if you rebase your PR or if this only might happen on a brand new change.big-architect-71258
10/11/2024, 3:04 PMpaths-ignore
to ensure that no one could start a workflow using pull_request_target
that might change/add a workflow by adding "usesless" commits to the paths for the configuration files.limited-rainbow-51650
10/11/2024, 3:04 PMpull_request_target
!!!
https://github.com/pulumiverse/infra/actions/runs/11294706502big-architect-71258
10/11/2024, 3:05 PMbig-architect-71258
10/11/2024, 3:07 PMbig-architect-71258
10/11/2024, 3:19 PMbig-architect-71258
10/11/2024, 4:35 PMpaths-ignore
and paths
and the two triggers, where pull-request
must be first with path-ignore
settings according to paths
of pull-request-target
.big-architect-71258
10/11/2024, 4:45 PMname: Pull Request
on:
pull_request:
paths-ignore:
- '01-teams/**'
- '02-repositories/**'
- '03-members/**'
- '.github/workflows/provider-*.yaml'
pull_request_target:
paths:
- '01-teams/**'
- '02-repositories/**'
- '03-members/**'
big-architect-71258
10/11/2024, 4:45 PMpull_request_target
will only get triggered if and only if there are changes to the configuration files.limited-rainbow-51650
10/14/2024, 7:13 AMbig-architect-71258
10/14/2024, 7:35 AMpull_request_target
will only work for changes to the configuration files, because other changes to the code or the GitHub workflows have the inherent problem that secrets could be stolen. And everybody, even a malicious actor, can open a pull request via fork. Changes to code or the GitHub workflow should only be processed via pull requests of people who have direct access to the repo, because that we can control.