67 Commits

Author SHA1 Message Date
6543
5b88bc75ab Allow gitea dev version (#914) (#1988)
Backport #914
Close  #1987

* update gitea sdk to latest
* As before try to autodetect gitea version, if this does not work,
assume it's latest version (v1.17.0 atm)
2023-07-12 23:43:32 +02:00
6543
50ca74bfc0 Update github.com/gin-gonic/gin to 1.9.1 (#1989)
fix CVE-2023-26125 and CVE-2023-29401
2023-07-12 23:35:33 +02:00
qwerty287
b02354658b Update github.com/docker/distribution (#1750) 2023-05-13 20:10:10 +02:00
6543
f92980839c Add securitycheck and bump deps where needed (#1745)
Address:
- github.com/docker/docker / github.com/containerd/containerd
- CVE-2022-23471, CVE-2023-25153, CVE-2023-25173, CVE-2023-28840,
CVE-2023-28841, CVE-2023-28842
- github.com/moby/moby
  - GHSA-vp35-85q5-9f25
- google.golang.org/protobuf
  - CVE-2023-24535, GHSA-hw7c-3rfg-p46j
2023-05-11 04:27:31 +02:00
6543
838bd8c686 Use codeberg.org/6543/go-yaml2json (#1719) 2023-04-29 12:39:39 +02:00
6543
648cd606bc Update dependencies golang/x libs (#1612) (#1621)
Backport  #1612

`go get -u golang.org/x/...`
2023-03-14 12:33:58 +02:00
6543
9128c9156d Update golang.org/x/net (#1494)
Fix CVE-2022-41717
2022-12-23 18:02:58 +01:00
6543
5a267a5ea8 update golang.org/x/text v0.3.7 -> v0.3.8
CVE-2022-32149
2022-10-14 12:18:05 +02:00
6543
8acc1b6875 Update dep moby (#1263) (#1264)
backport #1263
2022-10-14 12:13:10 +02:00
6543
441f59b39b Update golang.org/x/net dep 2022-09-14 07:39:03 +02:00
6543
8faafd3519 Update golang.org/x/crypto (#1124) 2022-08-25 08:08:39 +02:00
6543
d224d15fb5 Update github.com/containerd/containerd (#978) (#980) 2022-06-16 17:50:58 +02:00
6543
56a854fe14 Update deps (#789)
* update github.com/docker/cli

* update github.com/docker/distribution

* update github.com/docker/docker

* update github.com/gin-gonic/gin

* update github.com/golang-jwt/jwt/v4

* update github.com/golangci/golangci-lint

* update github.com/gorilla/securecookie

* update github.com/mattn/go-sqlite3

* update github.com/moby/moby

* update github.com/prometheus/client_golang

* update github.com/xanzy/go-gitlab
2022-02-24 17:33:24 +01:00
6543
b6e47a3f4a Update deps (#724)
* update github.com/containerd/containerd v1.5.7 -> v1.5.9

* update github.com/lib/pq v1.10.3 -> v1.10.4

* update github.com/prometheus/client_golang v1.11.0 -> v1.12.0

* update github.com/rs/zerolog v1.25.0 -> v1.26.1

* update golang.org/x/crypto 2021-12-15 -> 2022-01-28
2022-01-29 16:04:50 +01:00
6543
70fcc173b9 Update github.com/xanzy/go-gitlab v0.51.1 -> v0.52.2 (#599) 2021-12-12 16:39:25 +01:00
6543
0061edcbe2 Remove gopkg.in/yaml.v2 (#583)
* rm "gopkg.in/yaml.v2"

* fix UnmarshalYAML for Networks & Ulimits
2021-12-08 23:35:51 +01:00
Anbraten
ffed327564 Remove ghodss/yaml (#384) 2021-12-06 18:17:31 +00:00
6543
fc6a2a9975 Remove github.com/kr/pretty in favor of assert.EqualValues() (#564)
* remove github.com/kr/pretty in favor of assert.EqualValues()

* code format
2021-12-04 13:23:33 +01:00
6543
fe31fb1e06 Drop error only on purpose or else report back or log (#514)
- Remove Deadcode
- Simplify Code
- Drop error only on purpose
2021-11-23 15:36:52 +01:00
6543
82fd65665f Add linter bidichk to prevent malicios utf8 chars (#516)
bidichk checks for dangerous unicode character sequences

(https://github.com/golangci/golangci-lint/pull/2330)
2021-11-16 21:07:53 +01:00
Lukas
c28f7cb29f Add golangci-lint (#502)
Initial part of #435
2021-11-14 21:01:54 +01:00
6543
ca8e215cfa Migrate to Xorm (#474)
close #234

* Migrate store
* Migrate tests
* Rewrite migrations
* Init fresh DB in on step
* Rm old stuff (meddler, sql files, dead code, ...)
2021-11-13 20:18:06 +01:00
6543
0bb62be303 Embedding libcompose types for yaml parsing (#495)
since github.com/docker/libcompose is deprecated, unmaintained and archived.

and license is the same as woodpecker's, we can just copy stuff into woodpecker directly.
(we only use types of that project anyway)
2021-10-30 17:52:02 +02:00
6543
91d37be1da Update Dependencies (#486)
* github.com/Microsoft/go-winio

* github.com/bradrydzewski/togo

* github.com/containerd/containerd

* github.com/docker/cli

* github.com/docker/docker

* github.com/docker/docker-credential-helpers

* github.com/franela/goblin

* github.com/google/go-github/v39

* github.com/joho/godotenv

* github.com/lib/pq

* github.com/moby/moby

* github.com/prometheus/client_golang

* github.com/tevino/abool

* github.com/woodpecker-ci/togo

* github.com/xanzy/go-gitlab

* github.com/xeipuuv/gojsonschema

* github.com/mattn/go-sqlite3
2021-10-28 12:11:52 +02:00
6543
473a05d5b5 Update gogs client (#487)
* update github.com/gogits/go-gogs-client

* migrate

* fix test & use DefaultBranch
2021-10-28 10:09:27 +02:00
6543
e3033015ae Use std methode to get SystemCertPool (#488)
* use std methode to get SystemCertPool

* vendor

* fix lint
2021-10-28 09:14:16 +02:00
6543
798c2bc8b2 Upgrade urfave/cli to v2 (#483)
* migrate urfave/ci v1 -> v2
* refactor cli (format flag)
* log error if agent can not listen on port 3000

close #452
2021-10-27 21:03:14 +02:00
John Olheiser
4276a04f0c Move entirely to zerolog (#426)
Completely switch to zerolog

(Remove usage of logrus and std logger)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
2021-10-12 09:25:13 +02:00
6543
3837e03866 github.com/golang-jwt/jwt v3.2.2 -> v4.1.0 (#397) 2021-10-04 15:35:47 +02:00
6543
169e7e5aa3 Refactor Gitlab Remote (#358)
- Replace custom client
- Update Docs
- Test if it works
- Update Tests

close #285
2021-10-03 14:42:47 +02:00
Anbraten
ed6d3f3cea Use go embed for web files and remove httptreemux (#382)
- replace togo with go embed
- replace httptreemux with gin

closes #308
2021-09-29 17:34:56 +02:00
6543
a82d569bd1 Upgrade github client (#381)
* update github client

* ajust types
2021-09-29 07:59:46 +02:00
Anbraten
0fa271f465 Add json schema and cli lint command (#342)
- Add json schema file
- Add tests to validate sample pipeline files
- Add new command `lint` to cli to test a directory or single file to use correct schema

Example:  `woodpecker-cli lint ./pipeline/schema/.woodpecker/`

---
close #275 
preparation for #276 


Co-authored-by: 6543 <6543@obermui.de>
2021-09-27 02:38:15 +02:00
6543
da6fa0ec70 Use moby definitions for docker pipeline backend (#364)
* Migrate from docker to moby

* moby as interface docker as implementation

* Migrate deprecated func
2021-09-26 21:51:59 +02:00
Anbraten
07d793f727 Migrate go-docker to docker/docker (#363)
closes #325
2021-09-26 14:43:14 +02:00
6543
4df9c8d6a5 Update Dependencies (#349)
* github.com/russross/meddler v1.0.0 -> v1.0.1
* github.com/gin-gonic/gin v1.6.3 -> v1.7.4
* github.com/go-sql-driver/mysql v1.5.0 -> v1.6.0
* github.com/sirupsen/logrus v1.6.0 -> v1.8.1
* github.com/rs/zerolog v1.18.0 -> v1.25.0
2021-09-24 18:39:57 +02:00
6543
0bd10fa507 Cleanup Code (#348)
* Fix "Empty slice declaration using a literal"
* Fix "collides with imported package name"
* Remove unused code in pipeline
* Remove unused oauth2.providerAuthHeaderWorks()
* Add TODOs
* Format Code
* Cleanup doublestar import
* Migrate deprecated functions

Co-authored-by: Anbraten <anton@ju60.de>
2021-09-24 16:29:26 +02:00
Jacob Floyd
7f4a205764 Remove legacy/unused code + misc cleanups (#331)
* delete obsolete cncd code

jsonrpc2 client+server, and the utils that used them (piped, pipec)
are not used anymore.

jsonrpc2 was replaced with grpc
piped+pipec were replaced by agents

* delete duplicate section in swagger file

* comment typos

* go mod tidy (websocket+jsonrpc2 no longer used)

* go mod vendor

Co-authored-by: Anbraten <anton@ju60.de>
2021-09-21 17:35:32 +02:00
6543
ac46ee9345 Migrate jwt token lib (#332)
* migrate from github.com/dgrijalva/jwt-go to github.com/golang-jwt/jwt

* migrate
2021-09-21 12:55:25 +02:00
Anbraten
96828b16c1 Support recursive glob for path conditions (#327)
* Support glob with doublestar for path conditions

* Update docs and pipeline
2021-09-21 06:18:43 +02:00
6543
194e01c9c6 [CI] Run "build" on pull too (#287)
* CI: run "build" on pull too

* vendor build tools too
2021-08-30 20:48:19 +02:00
6543
75513575be Use go's vendoring (#284)
* store dependency's in git

* since we vendor ... rm tech-depts

* aad make target 'vendor' to update vendor folder (manual task)
2021-08-30 19:14:04 +02:00
6543
29ab3543cb code.gitea.io/sdk/gitea v0.14.1 -> v0.15.0 (#263) 2021-08-13 20:06:53 +02:00
6543
70958acc44 update / remove drone dependencies (#236)
* include github.com/drone/signal

* update github.com/drone/envsubst

* move github.com/woodpecker-ci/expr to woodpecker org
2021-06-30 19:15:28 +02:00
Alex Eftimie
2ff91e6a05 Add support for path-prefix condition (#174)
Example:
```yaml
when:
  path: '*.md'
```

should match only builds in which the commit added/removed or modified files with the *.md extension

Co-authored-by: 6543 <6543@obermui.de>
2021-06-28 23:50:35 +02:00
6543
978d666eac Update Dependencies 2021-06-28 19:33:58 +02:00
6543
bfc4aa8059 Enforce code format (#228)
* format .drone.yml & go code

* improve .editorconfig

* extend Makefile

* enforce go code format

* fix space

* update deps

* clean up
2021-06-22 12:34:35 +02:00
Laszlo Fogas
aef4ea3757 Further org move 2021-05-25 14:15:22 +02:00
Laszlo Fogas
c7ebd68232 Relaced laszlocph/woodpecker with woodpecker-ci/woodpecker 2021-05-25 14:08:27 +02:00
6543
ffe7306979 make deps 2021-04-27 18:02:26 +02:00