Commit Graph

2064 Commits

Author SHA1 Message Date
Raymond Chen
4e4568501d fix: fix unmarshall error in graphql call (#2128)
* Fix unmarshall error in GraphQL call #2090

* Add unit tests for GetTeamNamesForUser

* Fix lint error
2022-03-09 14:37:58 -08:00
rui
d1a10153ad release: 0.19.1 (#2122)
* release: 0.19.1

update changelog

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

* add comments about gitlab and bitbucketcloud fixes

Signed-off-by: Rui Chen <rui@chenrui.dev>
v0.19.1
2022-03-07 12:48:07 -05:00
rui
797b12de34 fix(gitlab): update tests (relates to #1971) (#2120)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-03-07 12:06:56 -05:00
Maxime Brunet
24e8cf7a79 fix(bitbucketcloud)!: Use AccountID as username instead of Nickname (#2034)
* fix(bitbucketcloud)!: Use AccountID as username instead of Nickname

* Update PullRequest.Author as well

* Remove unused Nickname field
2022-03-07 11:57:10 -05:00
Frank
898118501c fix(gitlab): change pending to running state (#1971)
* fix(gitlab-client): change pending to running state

* change default state
2022-03-07 11:24:26 -05:00
Maxime Brunet
f9a41c9bc6 fix(bitbucketcloud): Ensure status key has at most 40 characters (#2037)
* fix(bitbucketcloud): Ensure status key has at most 40 characters

* Use fmt.Sprintf()
2022-03-07 11:19:55 -05:00
dependabot[bot]
4db917dacd build(deps): bump github.com/xanzy/go-gitlab from 0.55.1 to 0.58.0 (#2118)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.55.1 to 0.58.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.55.1...v0.58.0)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-07 11:18:51 -05:00
dependabot[bot]
59929b85b4 build(deps): bump actions/checkout from 2 to 3 (#2119)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-07 11:18:40 -05:00
rui
cb018a5167 release: 0.19.0 (#2115)
Signed-off-by: Rui Chen <rui@chenrui.dev>

update release notes

Signed-off-by: Rui Chen <rui@chenrui.dev>
v0.19.0
2022-03-04 15:33:14 -05:00
Andre Ziviani
1a7cc360a9 feat: add a pending status for apply when running plan command (#2053)
* add a pending status for apply when running plan command

* fix status updater logic, we should only update the status after we check if the PR is mergeable like the doc next to it says

* do not dismiss the PR if the only our "atlantis/apply" status is pending/failing

* fix logic and tests

* linting
2022-03-04 14:49:54 -05:00
Rui Chen
534ccb049e deps(docker): bump atlantis-base from 2022.03.03 to 2022.03.04 (multi-platform image)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-03-04 14:05:06 -05:00
Jeppe Fihl-Pearson
19d41abc3c fix(docker): Multi-arch Docker images, attempt two (#2114)
* fix(docker): fix base image for multi-platform build (#2099)

* Correct indentation of run commands

* Split installation of packages into the ones needed at run time and build time

This allows us to now repeat the packages which need to be uninstalled again by
making use of a virtual package, which - when removed - removes the packages
installed as a dependency of it.

* Remove unnecessary `rm -rf /var/cache/apk/*` command

It's no needed when `apt add` is run with the `--no-cache` option.

* Add vertical spacing so it's clearer what is happening when

* Test the downloaded binaries to make sure they work on the platform

This can help find issues where binaries are downloaded for the wrong platform
compared to the architecture the Docker image is built for.

* Install dumb-init via apk

It's available as a package for Alpine Linux in version 1.2.5 as well, which
makes it easier to handle for the different architectures.

* Get git-lfs binaries in the right architecture for the Docker image

This makes use of the `TARGETPLATFORM` argument which automatically is
populated by Docker BuildKit with a string such as "linux/amd64" when the image
is being build for an x86_64 architecture.

* Install gosu for the right architecture

The `case` statement was taken from
https://github.com/BretFisher/multi-platform-docker-build as a way of
translating the platform name into what we needed for downloading gosu.

* fix(docker): fix installation of git-lfs in armv7 image (#2100)

This uses a similar pattern than what is used for `GOSU_ARCH` to map the
`TARGETPLATFORM` argument into the name of the architecture git-lfs use for
their release binaries, as "linux/arm/v7" otherwise would be mapped into "v7"
which is wrong.

* fix(docker): download Terraform and conftest versions maching image architecture (#2101)

* Remove Terraform versions from Docker image which don't have all archs

Terraform versions earlier than 0.11.15 does not have binaries available for
both amd64, arm64 and armv7, so are being dropped as we can't install the older
versions in all the architectures the Docker image is built for.

* Download Terraform version depending on the architecture Docker image is for

This avoids us having arm64 binaries for the ARM Docker images, which won't
work.

* Download arm64 conftest binaries for arm64 Docker image

This doesn't fix the armv7 Docker image because conftest doesn't have a binary
available for that, so it for now still downloads the x86_64 binary, which is
likely to not work - but it's the same as it did before.

* Correct path to dumb-init in docker-entrypoint.sh

The path changed after dumb-init was switched to be installed via `apk` rather
than downloaded directly as a binary.
2022-03-04 13:51:00 -05:00
Aayush Gupta
a752a6bd22 docs: moving streaming logs section from top-level navigation to docs (#2066)
* Moving logs tab from top navigation bar to docs

* fixing link error

* Update runatlantis.io/.vuepress/config.js

Co-authored-by: Nish Krishnan <nishkrishnan@users.noreply.github.com>
2022-03-03 13:47:03 -05:00
rui
8719d209da release: 0.18.5 (#2107)
* release: 0.18.5

* update changelog

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

* add issue ref for docker hub deprecation

Signed-off-by: Rui Chen <rui@chenrui.dev>
v0.18.5
2022-03-02 20:47:38 -05:00
rui
46cd2fb49b deps: tf 1.1.7 (#2108)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-03-02 20:44:28 -05:00
Rui Chen
8337262fd2 deps(docker): bump atlantis-base from 2022.03.02 to 2022.03.03
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-03-02 20:09:47 -05:00
rui
1b145dac27 fix(docker): fix docker runtime issue (#2106)
* debug setup

* Revert "fix(docker): download Terraform and conftest versions maching image architecture (#2101)"

This reverts commit 579e583740.

* Revert "fix(docker): fix installation of git-lfs in armv7 image (#2100)"

This reverts commit 8af78838b6.

* Revert "fix(docker): fix base image for multi-platform build (#2099)"

This reverts commit 571543fdfb.

* Revert "debug setup"

This reverts commit 274501ab6e.
2022-03-02 20:01:28 -05:00
rui
94eccee147 ci: drop circleci docker hub update (#2102)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-03-02 12:44:56 -05:00
Rui Chen
8c26e75f58 release: include #2101 into 0.18.4 release
Signed-off-by: Rui Chen <rui@chenrui.dev>
v0.18.4
2022-03-02 12:21:22 -05:00
Jeppe Fihl-Pearson
579e583740 fix(docker): download Terraform and conftest versions maching image architecture (#2101)
* Remove Terraform versions from Docker image which don't have all archs

Terraform versions earlier than 0.11.15 does not have binaries available for
both amd64, arm64 and armv7, so are being dropped as we can't install the older
versions in all the architectures the Docker image is built for.

* Download Terraform version depending on the architecture Docker image is for

This avoids us having arm64 binaries for the ARM Docker images, which won't
work.

* Download arm64 conftest binaries for arm64 Docker image

This doesn't fix the armv7 Docker image because conftest doesn't have a binary
available for that, so it for now still downloads the x86_64 binary, which is
likely to not work - but it's the same as it did before.
2022-03-02 12:20:00 -05:00
rui
34baf6d030 release: 0.18.4 (#2097)
* release: 0.18.4

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

* update changelog

Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-03-02 11:59:48 -05:00
Jeppe Fihl-Pearson
8af78838b6 fix(docker): fix installation of git-lfs in armv7 image (#2100)
This uses a similar pattern than what is used for `GOSU_ARCH` to map the
`TARGETPLATFORM` argument into the name of the architecture git-lfs use for
their release binaries, as "linux/arm/v7" otherwise would be mapped into "v7"
which is wrong.
2022-03-02 11:29:28 -05:00
Jeppe Fihl-Pearson
571543fdfb fix(docker): fix base image for multi-platform build (#2099)
* Correct indentation of run commands

* Split installation of packages into the ones needed at run time and build time

This allows us to now repeat the packages which need to be uninstalled again by
making use of a virtual package, which - when removed - removes the packages
installed as a dependency of it.

* Remove unnecessary `rm -rf /var/cache/apk/*` command

It's no needed when `apt add` is run with the `--no-cache` option.

* Add vertical spacing so it's clearer what is happening when

* Test the downloaded binaries to make sure they work on the platform

This can help find issues where binaries are downloaded for the wrong platform
compared to the architecture the Docker image is built for.

* Install dumb-init via apk

It's available as a package for Alpine Linux in version 1.2.5 as well, which
makes it easier to handle for the different architectures.

* Get git-lfs binaries in the right architecture for the Docker image

This makes use of the `TARGETPLATFORM` argument which automatically is
populated by Docker BuildKit with a string such as "linux/amd64" when the image
is being build for an x86_64 architecture.

* Install gosu for the right architecture

The `case` statement was taken from
https://github.com/BretFisher/multi-platform-docker-build as a way of
translating the platform name into what we needed for downloading gosu.
2022-03-02 11:08:03 -05:00
Rui Chen
23e2b155bd deps(docker): use atlantis-base:2022.03.02
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-03-02 00:32:39 -05:00
rui
e0e5bf842d update dependencies (#2098) 2022-03-01 23:40:40 -05:00
Artem A
b9f6718194 docker: bump git-lfs and gosu dependencies (#2096) 2022-03-01 23:40:15 -05:00
dependabot[bot]
fd02ebedbd build(deps): bump runatlantis/atlantis-base (#2088)
Bumps runatlantis/atlantis-base from 2021.12.15 to 2022.02.23.

---
updated-dependencies:
- dependency-name: runatlantis/atlantis-base
  dependency-type: direct:production
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-01 22:43:45 -05:00
Javier Palomo
7c89523319 fix(web-templates): use CleanedBasePath for titles (#2091)
A follow-up to https://github.com/runatlantis/atlantis/pull/2079

After upgrading to https://github.com/runatlantis/atlantis/releases/tag/v0.18.3 in our own
infra, I noticed a minor issue with the links in the titles, they are still pointing to /
even when '--atlantis-url' is provided.
2022-03-01 14:18:03 -05:00
rui
ed72f5e938 release: 0.18.3 (#2078)
* release: 0.18.3

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

* update changelog

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

* update changelog

Signed-off-by: Rui Chen <rui@chenrui.dev>
v0.18.3
2022-02-28 11:18:01 -05:00
Javier Palomo
51d434d46b fix(web-templates): use CleanedBasePath for static content (#2079)
* fix(web-templates): use CleanedBasePath for static content

When setting '--atlantis-url' this static content 404s.

For example, we can see this when comparig:
- /lock --> works seamless with a custom `--atlantis-url`
- /jobs --> doesn't work when using a custom `--atlantis-url`

* fix(web-templates): regenerate bindata_assetfs
2022-02-28 10:43:39 -05:00
dependabot[bot]
de9cd51061 build(deps): bump prismjs from 1.25.0 to 1.27.0 (#2086)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.25.0 to 1.27.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.25.0...v1.27.0)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-26 12:49:12 -05:00
Rui Chen
317b922c8e build: add concurrency control
Refs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value

Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-02-23 00:39:13 -05:00
dependabot[bot]
df99f2741a build(deps): bump github.com/gorilla/websocket from 1.4.2 to 1.5.0 (#2077)
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket) from 1.4.2 to 1.5.0.
- [Release notes](https://github.com/gorilla/websocket/releases)
- [Commits](https://github.com/gorilla/websocket/compare/v1.4.2...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/gorilla/websocket
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-21 17:53:15 -05:00
Pantelis Karamolegkos
6248472237 Removing web credentials from debug log (#2072)
* Hashing web credentials

* Fix syntactic error

* Using strong cryptogrpahic primitive

* Entirely removing credentials

* Removing unused constant

* Removing redundant formatting parameters
2022-02-17 15:38:09 -08:00
rui
60a168d417 deps: tf 1.1.6 (#2071)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-02-16 15:42:38 -05:00
dependabot[bot]
6948580441 build(deps): bump go.uber.org/zap from 1.20.0 to 1.21.0 (#2064)
Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.20.0...v1.21.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-16 15:17:43 -05:00
dependabot[bot]
60baa934ec build(deps): bump github.com/microcosm-cc/bluemonday (#2063)
Bumps [github.com/microcosm-cc/bluemonday](https://github.com/microcosm-cc/bluemonday) from 1.0.17 to 1.0.18.
- [Release notes](https://github.com/microcosm-cc/bluemonday/releases)
- [Commits](https://github.com/microcosm-cc/bluemonday/compare/v1.0.17...v1.0.18)

---
updated-dependencies:
- dependency-name: github.com/microcosm-cc/bluemonday
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-16 13:58:42 -05:00
dependabot[bot]
19b24a7d31 build(deps): bump github.com/golang-jwt/jwt/v4 from 4.2.0 to 4.3.0 (#2062)
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.2.0...v4.3.0)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 09:57:52 -05:00
dependabot[bot]
2f6c466c73 build(deps): bump github.com/xanzy/go-gitlab from 0.54.4 to 0.55.1 (#2061)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.54.4 to 0.55.1.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.54.4...v0.55.1)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 00:45:59 -05:00
dependabot[bot]
7bd0591c20 build(deps): bump ajv from 6.5.1 to 6.12.6 (#2060)
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.5.1 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.5.1...v6.12.6)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-12 17:33:23 -05:00
Aayush Gupta
58e9b42bbc feat: Use UUIDs to identify log streaming jobs (#2051)
* Add UUID for Log Streaming Job ID (#167)

* Update log handler to close buffered  channels when an operation is complete (#170)

* Add preliminary check before registering new receivers in the log handler (#173)

* Using projectOutputBuffers to check for jobID instead of receiverBuffers (#181)

* Refactor log handler  (#175)

* Reverting go.mod and go.sum

* Fix lint errors

* Fix linting
2022-02-09 13:15:49 -08:00
Aayush Gupta
bbd539b66a docs: add user facing documentation for real-time logs (#1963)
* Added user facing documentation

* Apply suggestions from code review

Co-authored-by: Nish Krishnan <nishkrishnan@users.noreply.github.com>

* Adding top level navigation

* Adding content

* Removing unnecessary artifacts

* Remooving package-loc

* Apply suggestions from code review

Co-authored-by: Nish Krishnan <nishkrishnan@users.noreply.github.com>

* Addressed comments

* Fixing website link error

* Noop commit

* Noop

* Removing link

* Added user facing documentation

* Apply suggestions from code review

Co-authored-by: Nish Krishnan <nishkrishnan@users.noreply.github.com>

* Adding top level navigation

* Adding content

* Removing unnecessary artifacts

* Remooving package-loc

* Apply suggestions from code review

Co-authored-by: Nish Krishnan <nishkrishnan@users.noreply.github.com>

* Addressed comments

* Fixing website link error

* Noop commit

* Noop

* Removing link

* Adding link

* Remove unused assets

Co-authored-by: Nish Krishnan <nishkrishnan@users.noreply.github.com>
2022-02-09 10:44:40 -08:00
dependabot[bot]
e82102bb0c build(deps): bump github.com/xanzy/go-gitlab from 0.54.3 to 0.54.4 (#2050)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.54.3 to 0.54.4.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.54.3...v0.54.4)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-07 12:09:53 -05:00
Raymond Chen
136b23ac11 fix: get user teams with GitHub GraphQL API (#2045) 2022-02-04 19:47:30 -05:00
ocaisa
3dcc64209f docs: fix some typos (#2048)
* Typo

* Do some spellchecking while I'm here
2022-02-04 16:12:26 -08:00
Alistair Scott
8f3fcc05f7 docs: fix policy example with custom workflow (#2049)
* Specify the workflow for the repo under the `repos` key.
* Fix indentation
* Fix typo `seperate` -> `separate`
2022-02-04 12:50:35 -08:00
Sarvar Muminov
7a927c050b Moving config files to core/config (#2036)
* Moving config files to core/config

* fix package names

* fix package dependencies

* linting fixes

* more linting fixes

* ran golangci-lint run --fix
2022-02-03 11:06:04 -08:00
rui
90c4a83d3e docs: update devops PR link (#2033)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-02-02 17:56:44 -05:00
Rob Lazzurs
6d2ad22a0c deps: terraform 1.1.5 (#2042)
Upgrading to the latest Terraform release
2022-02-02 17:54:30 -05:00
Roman Pertsev
576f8fbf4b Fix URL generation (#2021)
* fix org generation

* fix key generation

* fix variable name

* add normalization vars

* encapsulate vars

Co-authored-by: Roman Pertsev <roman.pertsev@nordigy.ru>
2022-01-31 12:15:16 -07:00