Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix vulns #199

Merged
merged 3 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .brev/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ append_if_not_exist ". \$HOME/.asdf/asdf.sh" ~/.zshrc

# golang
asdf plugin add golang https://github.com/asdf-community/asdf-golang.git
asdf install golang 1.21.8
asdf global golang 1.21.8
asdf install golang 1.22.6
asdf global golang 1.22.6
asdf install
GO_VERSION=$(asdf current golang | awk '{print $2}')
GO_ROOT=$HOME/.asdf/installs/golang/$GO_VERSION/go
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21
FROM golang:1.22.6

# [Option] Install zsh
ARG INSTALL_ZSH="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
- name: test
run: go test -timeout 240s -run ^Test_CanClonePublicRepoWithoutAuthorizeddKeysAllFormats$ github.com/brevdev/brev-cli/e2etest/setup

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v1
# with:
# status: ${{ job.status }}
# notify_when: 'failure'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
18 changes: 9 additions & 9 deletions .github/workflows/Test_ChangePwd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
- name: test
run: go test -timeout 240s -run ^Test_ChangePwd$ github.com/brevdev/brev-cli/e2etest/setup

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v1
# with:
# status: ${{ job.status }}
# notify_when: 'failure'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
18 changes: 9 additions & 9 deletions .github/workflows/Test_CustomBranchCustomSetupCustomFolder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
- name: test
run: go test -timeout 240s -run ^Test_CustomBranchCustomSetupCustomFolder$ github.com/brevdev/brev-cli/e2etest/setup

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v1
# with:
# status: ${{ job.status }}
# notify_when: 'failure'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
18 changes: 9 additions & 9 deletions .github/workflows/Test_NoProjectBrev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
- name: test
run: go test -timeout 240s -run ^Test_NoProjectBrev$ github.com/brevdev/brev-cli/e2etest/setup

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v1
# with:
# status: ${{ job.status }}
# notify_when: 'failure'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
18 changes: 9 additions & 9 deletions .github/workflows/Test_NoUserBrevNoProj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
- name: test
run: go test -timeout 240s -run ^Test_NoUserBrevNoProj$ github.com/brevdev/brev-cli/e2etest/setup

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v1
# with:
# status: ${{ job.status }}
# notify_when: 'failure'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
18 changes: 9 additions & 9 deletions .github/workflows/Test_NoUserBrevProj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
- name: test
run: go test -timeout 240s -run ^Test_NoUserBrevProj$ github.com/brevdev/brev-cli/e2etest/setup

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v1
# with:
# status: ${{ job.status }}
# notify_when: 'failure'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
18 changes: 9 additions & 9 deletions .github/workflows/Test_ProjectRepoNoBrev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
- name: test
run: go test -timeout 240s -run ^Test_ProjectRepoNoBrev$ github.com/brevdev/brev-cli/e2etest/setup

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v1
# with:
# status: ${{ job.status }}
# notify_when: 'failure'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
18 changes: 9 additions & 9 deletions .github/workflows/Test_ProvidedSetupFileChange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
- name: test
run: go test -timeout 240s -run ^Test_ProvidedSetupFileChange$ github.com/brevdev/brev-cli/e2etest/setup

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v1
# with:
# status: ${{ job.status }}
# notify_when: 'failure'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
18 changes: 9 additions & 9 deletions .github/workflows/Test_ProvidedSetupRanNoProj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
- name: test
run: go test -timeout 240s -run ^Test_ProvidedSetupRanNoProj$ github.com/brevdev/brev-cli/e2etest/setup

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v1
# with:
# status: ${{ job.status }}
# notify_when: 'failure'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
18 changes: 9 additions & 9 deletions .github/workflows/Test_ProvidedSetupUpdated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
- name: test
run: go test -timeout 240s -run ^Test_ProvidedSetupUpdated$ github.com/brevdev/brev-cli/e2etest/setup

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v1
# with:
# status: ${{ job.status }}
# notify_when: 'failure'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
2 changes: 1 addition & 1 deletion .github/workflows/Test_UnauthenticatedSSHKey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/Test_UserBrevProjectBrevV0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
- name: test
run: go test -timeout 240s -run ^Test_UserBrevProjectBrevV0$ github.com/brevdev/brev-cli/e2etest/setup

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v1
# with:
# status: ${{ job.status }}
# notify_when: 'failure'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
18 changes: 9 additions & 9 deletions .github/workflows/Test_UserBrevProjectBrevV1All.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
- name: test
run: go test -timeout 240s -run ^Test_UserBrevProjectBrevV1All$ github.com/brevdev/brev-cli/e2etest/setup

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v1
# with:
# status: ${{ job.status }}
# notify_when: 'failure'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
18 changes: 9 additions & 9 deletions .github/workflows/Test_UserBrevProjectBrevV1Minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22.6'
cache: true
- name: expire test cache
run: go clean -testcache
- name: test
run: go test -timeout 240s -run ^Test_UserBrevProjectBrevV1Minimal$ github.com/brevdev/brev-cli/e2etest/setup

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Report Status
# if: always()
# uses: ravsamhq/notify-slack-action@v1
# with:
# status: ${{ job.status }}
# notify_when: 'failure'
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
Loading
Loading