Commit Graph
96 Commits
Author SHA1 Message Date
Mihai PLESA c43e5a3276 Delete .github/workflows/set-milestone-from-base-branch.yml (#36778) 2026-05-28 07:17:15 +01:00
Kyle Den Hartog 52b04a59b6 ci: use GitHub API to produce verified commits in socket-fix workflow (#35618)
* ci: use GitHub API to produce verified commits in socket-fix workflow

Replace git commit/push with the GitHub Git Data API (blobs, trees,
commits) so the resulting PR commit is signed and verified by GitHub,
matching the approach used in update-dep.yml.

* ci: disable socket fix CI mode to prevent auto-PR creation

* ci: address code review feedback on open-pr step

- Add set -eEo pipefail / shopt -s inherit_errexit
- Use git status --porcelain to catch new and deleted files
- Read file mode from git index instead of hardcoding 100644
- Use base64 -w 0 to avoid line-wrap corruption
- Handle existing branch on workflow rerun
- Handle existing PR on workflow rerun
- Support comma-separated issue_link for multiple GHSAs
- Include WDP/Leo PR links in body when refs are provided

* ci: address second round of code review feedback

- Fetch HEAD_SHA from master ref via API to guard against workflow
  dispatch on a non-master ref
- Switch to git status --porcelain=v1 -z (NUL-delimited) to handle
  filenames with spaces and rename/copy entries correctly
- Use @<(...) process substitution for blob content to avoid hitting
  shell argument length limits on large files like package-lock.json

* ci: fix gh pr create missing --head and rename tree deletion

- Add --head "$BRANCH" to gh pr create so the PR is opened from the
  API-created branch rather than the currently checked-out branch
- Emit a null-sha tree entry for the source path of rename operations
  so the old path is removed from the resulting commit
2026-04-18 08:48:31 +12:00
Kyle Den Hartog 9d77270e4e fix: add wdp_ref and leo_ref inputs to socket-fix.yml (#35423)
Extends the brave-core socket-fix workflow to accept optional commit
hashes for web-discovery-project (DEPS) and @brave/leo (package.json).
When provided, the workflow updates these references before running
socket fix, enabling a single PR for both upstream hash bumps and
direct transitive dependency fixes. Also makes issue_link required
so brave-core PRs always close the tracking issue.
2026-04-11 19:32:16 +12:00
Mihai PLESA a2595471bc update dep workflow github compare link (#35212) 2026-04-03 11:06:41 +01:00
renovate[bot] 9fe0fefa2f Update actions/checkout action to v6 (#35198)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-02 10:13:32 +01:00
mschfh 8d0fb56f13 Speed up "Assign Labels" workflow (#35200)
Update GitHub Actions workflow for label assignment
2026-04-02 10:05:21 +01:00
Kyle Den Hartog 6f89f77cc1 ci: add Socket Fix workflow (#35150)
* ci: add Socket Fix workflow

Adds a workflow_dispatch CI workflow to apply socket fix for a given
set of GHSA IDs and open a pull request with the changes.

* ci: pin node to v24 major and add CI/skip label to generated PRs

* ci: use brave-builds user for consistency with other workflows

* ci: add security label and issue_link input to socket-fix workflow
2026-04-01 14:30:46 +01:00
Wojciech Knapik ea4500147b Derive PR number from commit hash if missing in sync-and-rebase-pr-from-fork (#34593) 2026-03-10 15:18:23 +01:00
Mihai PLESA bae1d91135 Fix push command in sync-and-rebase workflow
Update the push command to use refs/heads for branch reference.
2026-01-30 20:43:35 +00:00
Aleksei Khoroshilov 8a958a52df Push the actually rebased commit instead of original commit. (#33110) 2026-01-09 13:26:02 +00:00
Mihai PLESA 5a7e9fe2c8 Update set-milestone-from-base-branch.yml 2025-11-19 09:07:10 +00:00
Mihai PLESA a15edc7f38 Update set-milestone-from-base-branch.yml 2025-11-19 09:05:35 +00:00
Mihai PLESA 881e8bd4d1 Change repository-projects permission from read to write 2025-11-19 09:04:04 +00:00
mschfh 5953436ac2 Add repository-projects permission to PR milestone workflow (#32382)
Added permission to read repository projects to the workflow.
2025-11-18 08:44:57 +00:00
Andrea 83f661e802 [github workflows] add permissions (#32338) 2025-11-15 09:25:35 +00:00
Mihai PLESA 314a1ec385 switch github actions to ubuntu-slim 1 vcpu 2025-11-06 21:14:18 +00:00
renovate[bot] a460ba2a0c Update actions/checkout action to v5 (#31621)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-03 15:39:42 +01:00
renovate[bot] 28b76b3897 Update actions/labeler action to v6 (#31622)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-03 15:24:02 +01:00
renovate[bot] fb67538dc5 Update actions/checkout action to v4.3.0 (#31620)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-03 15:23:45 +01:00
Gaetano Checinski 270d56b162 require commit hash for sync rebase pr workflow (#31280)
require commit hash for sync rebase pr workflow to prevent TOCTOU race-conditions
2025-09-25 08:55:00 +01:00
Mihai PLESA 2cf19f2f67 Update sync-and-rebase-pr-from-fork.yml 2025-08-08 14:28:18 +01:00
Mihai PLESA 66cbbc2227 removed auto assignee from fork PRs 2025-08-08 14:12:14 +01:00
Gaetano Checinski 41ebab84e3 ensures labels are not removed that may be set by the user eg. CI/run-* labels. (#29903) 2025-07-03 19:41:00 +02:00
Gaetano Checinski 15df9640b8 upgrade action/labeler to v5 2025-06-20 10:54:49 +01:00
Andrea bac35d1c95 fix: autopin dependencies (#28359) 2025-03-28 08:44:00 +00:00
Wojciech Knapik 0314575cf7 Reverted to using github.event.pull_request.base.sha as the target sha in rerun-compare-chromium-versions (#26905) 2024-12-06 15:39:23 +01:00
Wojciech Knapik 3673b0955e Added links to more information about the workarounds in rerun-compare-chromium-versions (#26873) 2024-12-05 00:10:33 +01:00
Wojciech Knapik 02a483acdb Use uncached endpoints in chromium versions checks (#26828) 2024-12-03 19:46:12 +01:00
Wojciech Knapik 59a62da82d Fix for compare-chromium-versions (#26810) 2024-12-02 17:56:14 +01:00
Wojciech Knapik a0492bd8c2 Don't run compare-chromium-versions in PRs from forks (#26701) 2024-11-22 18:06:16 +00:00
Wojciech Knapik 50b923ff3f Added automated PR comments about Chromium major version mismatch with the target branch (#26627) 2024-11-20 15:29:36 +01:00
Wojciech Knapik 7a40b6623b Workaround for GitHub workflow limitation in rerun-compare-chromium-versions (#26230) 2024-10-25 18:37:58 +02:00
Wojciech Knapik c71fdd5bdc Minor improvements in rerun-compare-chromium-versions (#26161) 2024-10-24 23:44:21 +02:00
Wojciech Knapik 28ee648e6d Rerun compare-chromium-versions in all PRs after a chromium major version update on their target branch (#26061) 2024-10-17 16:06:38 +02:00
Wojciech Knapik 33f1923e87 Do not block merging if Chromium major versions match (#25844) 2024-10-07 16:19:35 +02:00
Mihai PLESA 59149b030c Delete .github/workflows/codeql.yml 2024-09-02 12:51:50 +01:00
goodov 15d7522cbf Clarify cr version check statuses and add call to action (#25376)
Update statuses and step description to be clearer.
2024-08-29 14:31:20 +02:00
Wojciech Knapik d54436d125 Added a Chromium version comparison check between PR and target branch (#25164) 2024-08-20 17:22:14 +02:00
goodov db04cab75a Fix multiline command. (#24910) 2024-07-30 08:27:00 +02:00
yan 967e449fbd remove swift codeql config 2024-07-26 20:19:40 -07:00
yan b6ca8647a7 replace codeql-analysis.yml with codeql.yml 2024-07-26 10:38:13 -07:00
Mihai PLESA 197932e988 update codeql to v3 2024-07-26 07:58:48 -04:00
Mihai PLESA b5f6c997a0 Delete .github/workflows/codeql.yml 2024-07-26 07:52:32 -04:00
Mihai PLESA 1a29e8051b Create codeql.yml 2024-07-26 07:50:40 -04:00
goodov 5e50ea21d6 Fix PR body content. (#24841) 2024-07-25 12:12:50 -04:00
goodov de6a19bb55 Fetch full repository to run a rebase. (#24838) 2024-07-25 17:38:01 +02:00
Jagadesh P 3bbe736308 Rebase CI only branch with latest "origin/master" along with sync fork (#24770)
[WorkFlows] Rebase CI only branch with latest "origin/master" along with fork sync.
2024-07-25 09:16:23 -04:00
Mihai PLESA 27ab27ef86 sync from fork improvements (#24704)
* sync from fork improvements
2024-07-18 11:50:44 +01:00
renovate[bot] ea23441365 Pin dependencies (#23118)
chore(deps): pin dependencies

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-10 11:37:23 +01:00
Mihai PLESA ac23203889 Revert "switch to ubuntu-latest-2-cores"
This reverts commit eacff4fac7.
2024-04-02 19:17:30 +01:00