Commit Graph

7456 Commits

Author SHA1 Message Date
renovate[bot]
1290bf1e4e chore(deps): update dependency isomorphic-dompurify to v2.36.0 (#6086)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-07 14:34:17 +01:00
6543
904a40674f Detached or service steps report back too (#6039) 2026-02-07 09:18:13 +01:00
renovate[bot]
28b46c3654 chore(deps): update eslint monorepo to v10 (major) (#6083)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2026-02-07 09:16:24 +01:00
Kirill Isakov
f89c900127 Translated using Weblate (Russian)
Currently translated at 100.0% (431 of 431 strings)

Translation: Woodpecker CI/UI
Translate-URL: https://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/ru/
2026-02-07 08:12:06 +00:00
renovate[bot]
18ccec7964 fix(deps): update docs npm deps non-major (#6052)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2026-02-07 09:09:11 +01:00
renovate[bot]
eb5b997668 chore(deps): update dependency @antfu/eslint-config to v7.3.0 (#6084)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-07 09:07:06 +01:00
6543
7c6d879cc2 server.store: rename GetPipelineLast to GetPipelineLastByBranch (#6071) 2026-02-07 08:58:36 +01:00
renovate[bot]
e9b15184ce chore(deps): update dependency jsdom to v28 (#6082)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-07 08:56:31 +01:00
renovate[bot]
ad2127ef76 chore(deps): update web npm deps non-major (#6081)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-07 03:01:43 +01:00
renovate[bot]
7f1a2d69a8 chore(deps): update dependency golang to v1.25.7 (#6080)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-07 02:58:39 +01:00
qwerty287
fe9db664fe Add some tests (#6076) 2026-02-06 23:49:42 +01:00
Martin Schmidt
5034dd2aba Added cancel info so one can see why it was cancelled (#6072)
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2026-02-06 17:11:02 +01:00
qwerty287
76355d1e56 Ignore mocks for coverage (#6074) 2026-02-06 15:04:48 +01:00
qwerty287
92a489f538 Refresh token before use for all forges (#6062) 2026-02-06 13:35:38 +01:00
6543
06818ee6ad Don't propagate workflow error from agent back to agent (#6056) 2026-02-06 12:22:32 +01:00
renovate[bot]
cf78d5dd7e fix(deps): update module gitlab.com/gitlab-org/api/client-go to v1.28.0 (#6069)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-06 01:52:14 +01:00
6543
8a8f9ad3aa Fix pipeline cancellation status handling and step state synchronization (#6011)
Co-authored-by: pnkcaht <samzoovsk19@gmail.com>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: Lauris B <lauris@nix.lv>
2026-02-05 21:41:05 +01:00
ArtEngr
1af1ef562c Add retry logic for CreatePipeline with backoff (#6067) 2026-02-05 15:29:52 +01:00
renovate[bot]
0f71f68c8c fix(deps): update module gitlab.com/gitlab-org/api/client-go to v1.27.0 (#6065)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-05 02:21:38 +01:00
renovate[bot]
1c07194a25 fix(deps): update module gitlab.com/gitlab-org/api/client-go to v1.26.0 (#6063)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-04 02:21:27 +01:00
6543
22c652fffb Translated using Weblate (Bavarian)
Currently translated at 100.0% (427 of 427 strings)

Translation: Woodpecker CI/UI
Translate-URL: https://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/bar/
2026-02-03 19:01:52 +00:00
6543
1e328e2ccf Translated using Weblate (German)
Currently translated at 100.0% (427 of 427 strings)

Translation: Woodpecker CI/UI
Translate-URL: https://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
2026-02-03 19:01:52 +00:00
qwerty287
8b11ab56a9 Revert dynamic autofollow (#6061) 2026-02-03 20:01:45 +01:00
6543
52cb9f6c21 Document required forge methods (#6049) 2026-02-03 17:04:24 +01:00
Rafael Fontenelle
e9cf3a7988 Translated using Weblate (Portuguese)
Currently translated at 100.0% (427 of 427 strings)

Translation: Woodpecker CI/UI
Translate-URL: https://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/pt/
2026-02-03 13:49:24 +00:00
qwerty287
093484b2ba Translated using Weblate (German)
Currently translated at 100.0% (427 of 427 strings)

Translation: Woodpecker CI/UI
Translate-URL: https://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
2026-02-03 13:49:23 +00:00
6543
56c9d96f3d Update Module Interaction Diagram (#6019)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2026-02-03 13:39:37 +01:00
Kevin Web
894ba77d94 Fix OAuth token refresh in webhook handling for Bitbucket and GitHub (#6059)
## Summary

Fixes #5590
Fixes #5713

This PR fixes an issue where webhook handling fails with "failure to parse hook" error when the user's OAuth access token has expired. The root cause is that the Bitbucket and GitHub forge implementations make API calls during webhook processing without first refreshing the OAuth token.

## Problem

When a webhook arrives from Bitbucket or GitHub, the `Hook()` function (and its helper functions) make API calls to fetch additional data (changed files, repo info, etc.). These API calls use the stored OAuth access token, which may have expired.

**Before this fix:**
1. Webhook arrives
2. `Hook()` makes API calls with potentially expired token
3. API call fails with "OAuth2 access token expired"
4. Error bubbles up as HTTP 400 "failure to parse hook"
5. `forge.Refresh()` is called later in `PostHook()` - but it's too late

**Example error from logs:**

`failure to parse hook error="OAuth2 access token expired. Use your refresh token to obtain a new access token."`


## Solution

Add `forge.Refresh()` calls before making API calls in the webhook handling code paths. This follows the same pattern already used by:
- Bitbucket Data Center forge (`server/forge/bitbucketdatacenter/bitbucketdatacenter.go`)
- Other code paths like `pipeline.Create()`, `cron.go`, etc.

### Changes

**Bitbucket** (`server/forge/bitbucket/bitbucket.go`):
- Added `forge.Refresh()` in `Hook()` before API calls

**GitHub** (`server/forge/github/github.go`):
- Added `forge.Refresh()` in `loadChangedFilesFromPullRequest()`
- Added `forge.Refresh()` in `getTagCommitSHA()`
- Added `forge.Refresh()` in `loadChangedFilesFromCommits()`

## Testing

- All existing Bitbucket and GitHub forge tests pass
- Tested in production environment with Bitbucket (waited for token expiry, webhook succeeded after fix)
2026-02-03 13:34:01 +01:00
renovate[bot]
57b2449bb1 fix(deps): update golang-packages (#6058)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2026-02-03 08:26:49 +01:00
Anbool
a1c89071f3 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (429 of 429 strings)

Translation: Woodpecker CI/UI
Translate-URL: https://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/zh_Hans/
2026-02-02 18:25:36 +00:00
Kirill Isakov
2b2abdbb65 Translated using Weblate (Russian)
Currently translated at 100.0% (429 of 429 strings)

Translation: Woodpecker CI/UI
Translate-URL: https://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/ru/
2026-02-02 18:25:36 +00:00
qwerty287
040f27bf87 Dynamic log following (#6036) 2026-02-02 19:25:30 +01:00
6543
25f10985f4 Update fast-xml-parser (#6057) 2026-02-02 17:47:01 +01:00
renovate[bot]
b22770adf3 fix(deps): update module gitlab.com/gitlab-org/api/client-go to v1.25.0 (#6053)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-02 03:09:47 +01:00
renovate[bot]
33ae17e7f2 chore(deps): lock file maintenance (#6054)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-02 03:09:32 +01:00
qwerty287
7c1e99ecee Translated using Weblate (German)
Currently translated at 100.0% (427 of 427 strings)

Translation: Woodpecker CI/UI
Translate-URL: https://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
2026-02-01 15:44:15 +00:00
David Loewe
e2270ae95c Per-Workflow and Per-Workflow-Step badge generation (#5977)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2026-02-01 16:44:09 +01:00
renovate[bot]
df8dc5de33 chore(deps): update dependency simple-icons to v16.7.0 (#6051)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-01 09:19:24 +01:00
CrimsonFez
43272455ae Add Buildah plugin link (#6050) 2026-02-01 09:08:40 +01:00
Anbool
bfadce790d Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (427 of 427 strings)

Translation: Woodpecker CI/UI
Translate-URL: https://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/zh_Hans/
2026-01-31 17:04:32 +00:00
renovate[bot]
6a33483647 fix(deps): update module github.com/google/go-github/v81 to v82 (#6047)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2026-01-31 08:52:23 +01:00
renovate[bot]
dfb77fb4c2 chore(deps): update docs npm deps non-major (#6045)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2026-01-31 08:47:12 +01:00
qwerty287
b52291ef46 Refresh token before forge calls (#6035) 2026-01-31 08:27:27 +01:00
renovate[bot]
aa783e1afb chore(deps): update dependency @vueuse/core to v14.2.0 (#6048)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-31 08:09:32 +01:00
renovate[bot]
a721feb262 fix(deps): update dependency vue-router to v5 (#6046)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-31 08:02:44 +01:00
renovate[bot]
30a3bb1d08 chore(deps): update dependency vue-tsc to v3.2.4 (#6044)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-31 02:27:56 +01:00
renovate[bot]
40e5c700e6 fix(deps): update golang-packages (#6042)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-30 01:36:57 +01:00
qwerty287
39acb2a4be Render MD in pipeline titles (#5999)
Co-authored-by: 6543 <6543@obermui.de>
2026-01-29 14:27:55 +01:00
renovate[bot]
c8966b734d fix(deps): update golang-packages (#6040)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-29 03:40:27 +01:00
qwerty287
f462f787dd Add Homebrew package (#6037) 2026-01-28 18:32:00 +01:00