Commit graph

937 commits

Author SHA1 Message Date
Gabriel
d4ce174bab
Merge pull request #343 from gabriel-samfira/relax-webhook-url
Relax URLs validation
2025-02-05 22:19:16 +02:00
Gabriel Adrian Samfira
86d6517a5d Relax URLs validation
Webhook URL was not mandatory in previous versions. While it is needed
if users plan to use the install webhook feature, it is not required if
you want to install it yourself.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-02-05 20:10:02 +00:00
Gabriel
001465d0a2
Merge pull request #326 from cloudbase/dependabot/go_modules/golang.org/x/crypto-0.32.0
Bump golang.org/x/crypto from 0.31.0 to 0.32.0
2025-02-05 10:16:30 +02:00
dependabot[bot]
83001abbae
Bump golang.org/x/crypto from 0.31.0 to 0.32.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.31.0 to 0.32.0.
- [Commits](https://github.com/golang/crypto/compare/v0.31.0...v0.32.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-05 08:11:41 +00:00
Gabriel
453ce1004c
Merge pull request #340 from cloudbase/dependabot/go_modules/golang.org/x/sync-0.11.0
Bump golang.org/x/sync from 0.10.0 to 0.11.0
2025-02-05 10:10:27 +02:00
dependabot[bot]
c179436f97
Bump golang.org/x/sync from 0.10.0 to 0.11.0
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/sync/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-05 08:00:13 +00:00
Gabriel
45957e45ba
Merge pull request #341 from cloudbase/dependabot/go_modules/golang.org/x/oauth2-0.26.0
Bump golang.org/x/oauth2 from 0.25.0 to 0.26.0
2025-02-05 09:59:01 +02:00
dependabot[bot]
0932e94799
Bump golang.org/x/oauth2 from 0.25.0 to 0.26.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.25.0 to 0.26.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.25.0...v0.26.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-05 07:15:38 +00:00
Gabriel
5ec6c25246
Merge pull request #335 from cloudbase/gabriel-samfira-patch-1
Update integration-tests.yml
2025-01-31 21:04:32 +02:00
Gabriel
e255c90213
Update integration-tests.yml 2025-01-31 20:59:25 +02:00
Gabriel
e0e60d42c8
Merge pull request #327 from fabi200123/update-docs
Update Performance Considerations - Cached runners section
2025-01-17 13:11:21 +02:00
Fabian Fulga
e221698299 Update Performance Considerations - Cached runners section 2025-01-17 10:14:24 +02:00
Gabriel
b60fad59d5
Merge pull request #324 from cloudbase/dependabot/go_modules/github.com/bradleyfalzon/ghinstallation/v2-2.13.0
Bump github.com/bradleyfalzon/ghinstallation/v2 from 2.12.0 to 2.13.0
2025-01-07 00:19:14 +02:00
Gabriel
a040dde9b4
Merge pull request #325 from cloudbase/dependabot/go_modules/golang.org/x/oauth2-0.25.0
Bump golang.org/x/oauth2 from 0.24.0 to 0.25.0
2025-01-07 00:18:20 +02:00
dependabot[bot]
83ee1724db
Bump golang.org/x/oauth2 from 0.24.0 to 0.25.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.24.0 to 0.25.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-06 06:38:40 +00:00
dependabot[bot]
5d6ace6a2c
Bump github.com/bradleyfalzon/ghinstallation/v2 from 2.12.0 to 2.13.0
Bumps [github.com/bradleyfalzon/ghinstallation/v2](https://github.com/bradleyfalzon/ghinstallation) from 2.12.0 to 2.13.0.
- [Release notes](https://github.com/bradleyfalzon/ghinstallation/releases)
- [Commits](https://github.com/bradleyfalzon/ghinstallation/compare/v2.12.0...v2.13.0)

---
updated-dependencies:
- dependency-name: github.com/bradleyfalzon/ghinstallation/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-03 06:41:00 +00:00
Gabriel
f43f797883
Merge pull request #322 from gabriel-samfira/update-deps
Update dependencies
2024-12-20 20:59:10 +02:00
Gabriel Adrian Samfira
c42c3f580e Update dependencies
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-12-20 18:54:05 +00:00
Gabriel
72034d445a
Merge pull request #321 from cloudbase/dependabot/go_modules/github.com/jedib0t/go-pretty/v6-6.6.5
Bump github.com/jedib0t/go-pretty/v6 from 6.6.4 to 6.6.5
2024-12-20 20:47:47 +02:00
dependabot[bot]
e96145833c
Bump github.com/jedib0t/go-pretty/v6 from 6.6.4 to 6.6.5
Bumps [github.com/jedib0t/go-pretty/v6](https://github.com/jedib0t/go-pretty) from 6.6.4 to 6.6.5.
- [Release notes](https://github.com/jedib0t/go-pretty/releases)
- [Commits](https://github.com/jedib0t/go-pretty/compare/v6.6.4...v6.6.5)

---
updated-dependencies:
- dependency-name: github.com/jedib0t/go-pretty/v6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-20 18:42:29 +00:00
Gabriel
e69838b678
Merge pull request #320 from cloudbase/gabriel-samfira-patch-2
Create dependabot.yml
2024-12-20 20:41:22 +02:00
Gabriel
1f3c7cd34a
Create dependabot.yml 2024-12-20 20:35:04 +02:00
Gabriel
54505289d5
Merge pull request #319 from gabriel-samfira/update-deps
Update dependencies
2024-12-12 23:48:52 +02:00
Gabriel Adrian Samfira
f0aaf20998
Update dependencies
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-12-12 23:42:01 +02:00
Gabriel
1cb2d70546
Merge pull request #318 from gabriel-samfira/fix-nil-pointer-cli
Fix nil pointer dereference when rendering message
2024-12-12 10:49:09 +02:00
Gabriel Adrian Samfira
f8b4118306
Fix nil pointer dereference when rendering message
We failed to properly check the error of the update url call before
trying to access the payload, which lead to a panic in the CLI. This
change should fix that.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-12-12 09:49:42 +02:00
Gabriel
c4a7a59bc9
Merge pull request #316 from gabriel-samfira/fix-run-as-user
Fix hardcoded user value in template
2024-12-05 01:28:43 +02:00
Gabriel Adrian Samfira
67928ccd94
Fix hardcoded user value in template
The User option in the systemd unit file used when JIT configs are enabled
had a hardcoded value of "runner". This change fixes that oversight.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-12-05 00:04:11 +02:00
Gabriel
7d889f0cdd
Merge pull request #315 from mercedes-benz/fix/makefile
fix: remove duplication in Makefile
2024-11-26 16:59:14 +02:00
Michael Kuhnt
53bc1eedce fix: remove duplication in Makefile 2024-11-26 15:04:53 +01:00
Gabriel
8e13588edd
Merge pull request #314 from mercedes-benz/improve_error_message
Improve error messages in garm log
2024-11-26 10:44:41 +02:00
Michael Kuhnt
6167d8c7fd lint: exclude gosec G115 2024-11-26 09:23:58 +01:00
Michael Kuhnt
3a95b8f704 fix linter finding 2024-11-26 07:53:02 +01:00
Michael Kuhnt
386aba18c0 set specific linter version 2024-11-26 07:49:08 +01:00
Michael Kuhnt
d6de59619d commit suggestion 2024-11-22 16:49:56 +01:00
Michael Kuhnt
935c9dcd96
Update database/sql/jobs.go
Co-authored-by: Gabriel <samfiragabriel@gmail.com>
2024-11-22 16:40:23 +01:00
Michael Kuhnt
8a31d81faf ignore workflow_jobs without labels 2024-11-22 11:48:59 +01:00
Michael Kuhnt
c5c74a8dfc add runner name in error message 2024-11-22 11:48:59 +01:00
Gabriel
06dfc2708d
Merge pull request #306 from gabriel-samfira/fix-conflicting-options
Remove conflicting short hand option
2024-10-23 16:43:54 +03:00
Gabriel Adrian Samfira
2273b1de19 Remove conflicting short hand option
The --format command line option is persistent to allow all commands to
output to either json or table. The shorthand of this option caused a
conflict with other subcommands that also define the -f option. Removing
the persitent short form option.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-10-23 13:38:05 +00:00
Gabriel
54aa3815df
Merge pull request #302 from fabi200123/cached-runner-docs
Add Using Cached Runner documentation
2024-10-22 13:22:56 +03:00
Fabian Fulga
8515bf1083 Add Using Cached Runner documentation 2024-10-16 08:28:12 +03:00
Gabriel
465b12beb5
Merge pull request #299 from gabriel-samfira/use-errors-wrap
Use errors.Wrap() in repositories.go
2024-10-06 14:30:36 +03:00
Gabriel
6e38e23cdc
Merge pull request #301 from gabriel-samfira/copy-ca-certs
Copy the CA certificates to final image
2024-09-28 22:40:32 +03:00
Gabriel Adrian Samfira
1ba14f858d Copy the CA certificates to final image
The busybox image does not contain CA certificares. This adds them from
the builder stage.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-09-28 19:30:20 +00:00
Gabriel
72e8aa10ee
Merge pull request #300 from gabriel-samfira/add-default-value
Add a default value to the new --format option
2024-09-28 22:26:54 +03:00
Gabriel Adrian Samfira
f9abb30128 Add a default value to the new --format option
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-09-28 19:21:20 +00:00
Gabriel
5323fcb513
Merge pull request #298 from gabriel-samfira/add-format-option
Add --format command line option
2024-09-28 22:15:13 +03:00
Gabriel Adrian Samfira
36b9e9f296 Use errors.Wrap() in repositories.go
The API code unwraps errors wrapped by the errors.Wrap() function. It
falls back to 500 error if it can't determine any other error type.

Ultimately we need to migrate to the fmt.Errorf() pattern. But for now
at least, we need to return proper errors. Any 500 error will not output
details to the API. Neither will 401 for similar reasons.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-09-28 19:13:05 +00:00
Gabriel Adrian Samfira
63000113ee Add --format command line option
This change adds a --format command line option to the GARM cli. This
option accepts either json or table as a value.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-09-28 19:09:45 +00:00