Commit Graph

2989 Commits

Author SHA1 Message Date
Luke Massa
fb484ad8eb feat: Remove flag for disable apply (#3912)
* Add code for disabling apply flag

* Better comment
2023-12-11 20:29:21 -05:00
Luke Massa
242640bbe9 fix: fetch before checking status (#3832)
* fix: fetch before checking status

* Switch to fetch
2023-12-12 00:45:05 +00:00
Ghais Zaher
379efd2d08 fix: clone repository before getting working dir (#3867)
* fix: clone repository before getting working dir

* unrelated change

* move TryLock up

* fix workspace and add e2e tests

* fix description

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-12-11 19:29:21 -05:00
renovate[bot]
d93f85a0c3 fix(deps): update module github.com/google/go-github/v54 to v57 in go.mod (main) (#4032)
* fix(deps): update module github.com/google/go-github/v54 to v57 in go.mod

* fix(deps): go-github v57 in server/events/vcs/testdata/fixtures.go

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2023-12-12 00:21:42 +00:00
Luay-Sol
f79ece8243 feat: Add project depends on functionality (#3292)
* feat: implemented the code for the depends on functionality

Co-authored-by: Vincent <106497818+vincentgna@users.noreply.github.com>
2023-12-11 12:43:34 -08:00
Finn Arne Gangstad
562a15172a set policy_check status to success when no changes (#3780)
Autoplan would set the "policy_check" status to successful if
there were no modified projects in a PR, but "atlantis plan"
would not. Changed "atlantis plan" to behave like autoplan
in this regard.
2023-12-11 19:08:38 +00:00
Gabriel Martinez
56e38b4151 chore(atlantis): fix linter errors (#3690)
* chore(atlantis): fix linter errors

* fix superfluous-else

* revert gitlab check

* ignore stub funcs on azuredevops_client

* remove fetch-depth

* remove fail_on_error

* fix plan_step_runner_test.go

* more lint fixes

---------

Co-authored-by: Dylan Page <dylan.page@autodesk.com>
2023-12-11 19:02:16 +00:00
renovate[bot]
2e6758e6ee chore(deps): update actions/stale action to v9 in .github/workflows/stale.yml (#4031)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-11 01:07:47 +00:00
renovate[bot]
2c71e117ef chore(deps): update actions/setup-go action to v5 in .github/workflows/release.yml (#4027)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-09 02:04:29 +00:00
dependabot[bot]
3ecd457f90 chore(deps): bump vite from 4.4.9 to 4.4.12 (#4016)
* chore(deps): bump vite from 4.4.9 to 4.4.12

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.4.9 to 4.4.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.4.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.4.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix gitlab approvals links

Signed-off-by: Rui Chen <rui@chenrui.dev>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Co-authored-by: Rui Chen <rui@chenrui.dev>
2023-12-08 20:59:29 -05:00
renovate[bot]
16cf8fcdf0 fix(deps): update module github.com/spf13/viper to v1.18.1 in go.mod (#4026)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-09 00:43:15 +00:00
renovate[bot]
bc808e87ec chore(deps): update alpine docker tag to v3.19.0 in dockerfile (#4021)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-08 17:29:33 +00:00
Luke Massa
ad38f1f5dc feat: Relax constraints for alpine utilities (#4024) 2023-12-08 09:10:44 -08:00
renovate[bot]
0dd5ccacf5 fix(deps): update module github.com/spf13/viper to v1.18.0 in go.mod (#4020)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-08 06:08:33 +00:00
Luke Massa
f9cab6ab6a fix: Bump curl from 8.4 to 8.5 (#4019)
* fix: Relax constraint for installing curl

* Update Dockerfile
2023-12-07 21:49:27 -08:00
Andrew Fitzpatrick
0f8db49d2e fix: removing mr.Headpipeline.Source log when mr.HeadPipeline is missing (#3996)
* fix: removing mr.Headpipeline.Source log when mr.HeadPipeline is missing

* fix: remove  mr.HeadPipeline.Source from other log
2023-12-06 20:53:27 -08:00
renovate[bot]
6391d608f5 fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.0 in go.mod (#4018)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 04:10:03 +00:00
renovate[bot]
91c477bb1c chore(deps): update dependency open-policy-agent/conftest to v0.47.0 in testing/dockerfile (#4017)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-07 00:52:26 +00:00
renovate[bot]
aebf153d32 chore(deps): update golang docker tag to v1.21.5 in testing/dockerfile (#4015)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-06 00:47:45 +00:00
Rui Chen
dacd44a264 chore(actions): labeler v4 to v5 (#4013)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-12-05 10:20:39 -05:00
renovate[bot]
183d885930 fix(deps): update github.com/hashicorp/terraform-config-inspect digest to a34142e in go.mod (#4014)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-05 01:36:09 +00:00
renovate[bot]
37144970da chore(deps): update dependency node to v20.10.0 in .node-version (#4010)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 03:02:36 +00:00
renovate[bot]
202ec92626 chore(deps): update dependency hashicorp/terraform to v1.6.5 in .circleci/config.yml (#4009)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 01:15:17 +00:00
renovate[bot]
cb3ccac221 chore(deps): update alpine docker tag to v3.18.5 in dockerfile (#4008)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-03 00:52:32 +00:00
renovate[bot]
032f4bde3c fix(deps): update github.com/shurcool/githubv4 digest to 1cffa1f in go.mod (#4006)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-02 00:27:25 +00:00
jskrill
00aae565b2 feat: add autodiscover enabled feature (#3895)
* add flag to allow the user disable the autodiscover

* add global config and doc

* feat: Implement autodiscover.mode

* fix: Minor doc fixes

* fix: Small fixes to docs/indent/tests

* fix: Line length, quoting, function comments

* fix: Add a few more tests and remove newlines

* fix: Always camel case never snake

---------

Co-authored-by: Marcelo Medeiros <m.medeiros@carepay.com>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-29 15:43:53 -08:00
renovate[bot]
6ff0e2f90e chore(deps): update dependency @vuepress/plugin-google-analytics to v2.0.0-rc.0 in package.json (#3986)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-17 00:57:11 +00:00
Alexandru Marcencov
e9d89bb830 add script execution from docker-entrypoint.d folder (#3666)
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-16 11:30:14 -08:00
renovate[bot]
488a1ac92e chore(deps): update dependency hashicorp/terraform to v1.6.4 in .circleci/config.yml (#3981)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-16 01:53:34 +00:00
Eng Zer Jun
fd600d3bb1 perf: avoid allocations with (*regexp.Regexp).MatchString (#3881)
We should use `(*regexp.Regexp).MatchString` instead of
`(*regexp.Regexp).Match([]byte(...))` when matching string to avoid
unnecessary `[]byte` conversions and reduce allocations.

Example benchmark:

func BenchmarkMatch(b *testing.B) {
	for i := 0; i < b.N; i++ {
		if match := branchRegex.Match([]byte("main")); !match {
			b.Fail()
		}
	}
}

func BenchmarkMatchString(b *testing.B) {
	for i := 0; i < b.N; i++ {
		if match := branchRegex.MatchString("main"); !match {
			b.Fail()
		}
	}
}

goos: linux
goarch: amd64
pkg: github.com/runatlantis/atlantis/server/core/config
cpu: AMD Ryzen 7 PRO 4750U with Radeon Graphics
BenchmarkMatch-16          	 8269699	       141.4 ns/op	       4 B/op	       1 allocs/op
BenchmarkMatchString-16    	14298446	        95.81 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	github.com/runatlantis/atlantis/server/core/config	2.784s

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-15 09:00:00 -08:00
Marcos Diez
57fdc5a641 feat: full window sized terminal (#3781)
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-14 23:03:23 -08:00
Henry Muru Paenga
ce2b99223a fix: Check user permissions on autoplan (#3742)
* Check user permissions on autoplan

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-14 22:21:11 -08:00
Felipe Zipitría
896c394988 fix: remove unused packages after gosu cleanup (#3975)
Signed-off-by: Felipe Zipitria <fzipitria@life360.com>
Co-authored-by: Felipe Zipitria <fzipitria@life360.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-14 21:17:31 -08:00
Luke Massa
99035ce7ac Remove deprecated repo whitelist flag (#3922) 2023-11-14 15:41:49 -08:00
renovate[bot]
8532bc3208 fix(deps): update module github.com/xanzy/go-gitlab to v0.94.0 in go.mod (#3978)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-14 00:56:03 +00:00
renovate[bot]
a793620475 fix(deps): update module golang.org/x/text to v0.14.0 in go.mod (#3972)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-11 02:47:59 +00:00
renovate[bot]
46c1d757f8 chore(deps): update dependency @vuepress/plugin-google-analytics to v2.0.0-beta.68 in package.json (#3971)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-11 02:41:40 +00:00
renovate[bot]
8ebb504528 fix(deps): update module golang.org/x/term to v0.14.0 in go.mod (#3968)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-10 03:33:35 +00:00
renovate[bot]
543c37ce51 fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.1.0 in go.mod (#3967)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-10 01:52:00 +00:00
Luke Massa
9bc94dee14 feat: remove silence whitelist errors flag (#3923)
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-09 14:36:35 -08:00
Dylan Page
ea1dbbdabb fix: actually run GHA workflows on s/releases/release branches (#3966) 2023-11-09 14:13:01 -06:00
Bruno Schaatsbergen
e9c0d72578 fix: use the non-root atlantis user instead of root (#3886)
* feat: use Atlantis user by default and get rid of gosu

* chore: set `DOCKER_CONTENT_TRUST=1`

* chore: fix chmod and chown

* feat: add a healthcheck to the debian and alpine images

* feat: removing setuid and setgid permissions prevents container privilege escalation and improve comments

* chore: remove setgid/setuid as we chown an entire directory

* chore: keep deps comment generic

* chore: grammar

* chore: remove redundant comment

* chore: rm DOCKER_CONTENT_TRUST

* chore: set uid and gid and remove passwd entry

* chore: revert gid and uid set as it's conflicting

---------

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2023-11-08 20:25:08 -08:00
renovate[bot]
b965f9ac1a chore(deps): update golang docker tag to v1.21.4 in testing/dockerfile (#3963)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-09 04:23:21 +00:00
renovate[bot]
1a9714a91c fix(deps): update github.com/warrensbox/terraform-switcher digest to d7dfd1b in go.mod (#3928)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-07 00:47:57 +00:00
Dylan Page
5818334a9a fix(renovate): add release branches to renovate (#3924)
* fix(renovate): This fixes renovate to also autoMerge fixes to our release branches so we don't have to cherry-pick them.

* fix(renovate): run config validator on release branches too
2023-11-05 20:20:15 -08:00
renovate[bot]
1f2f3531e5 fix(deps): update module github.com/spf13/cobra to v1.8.0 in go.mod (#3927)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-06 03:07:52 +00:00
renovate[bot]
06e83e8d08 fix(deps): update module github.com/gorilla/websocket to v1.5.1 in go.mod (#3926)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-06 03:00:00 +00:00
Dylan Page
886dd96299 refactor(ci): reduce complexity in required workflows (#3925)
* refactor(ci): builds upon work in tests to reduce complexity in requiring workflows

* fix: tweaks and missing outputs

* fix: make sure the new workflows actually run

* fix: consistency with non-required testing image
2023-11-05 21:41:32 -05:00
renovate[bot]
9c6b8d0a96 fix(deps): update module github.com/gorilla/mux to v1.8.1 in go.mod (#3921)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-05 04:06:28 +00:00
renovate[bot]
721313f4d8 fix(deps): update module github.com/go-playground/validator/v10 to v10.16.0 in go.mod (#3920)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-05 01:06:35 +00:00