Skip to content
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
3 changes: 2 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
pr:
runs-on: ubuntu-latest
container:
image: golang:1.21-bullseye
image: golang:1.24-bookworm
needs: set-version
env:
REVISION: $GITHUB_SHA
Expand All @@ -39,6 +39,7 @@ jobs:
run: |
# Chromium dependencies
apt-get update && apt-get install -y jq git \
zip unzip \
libnss3 \
libxss1 \
libasound2 \
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
release:
runs-on: ubuntu-latest
container:
image: golang:1.21-bullseye
image: golang:1.24-bookworm
env:
FOO: Bar
needs: set-version
Expand All @@ -59,4 +59,12 @@ jobs:
- name: release binary
run: |
make REVISION=$GITHUB_SHA GIT_TAG=${SEMVER} PAT=${{ secrets.GITHUB_TOKEN }} cross-build
make REVISION=$GITHUB_SHA GIT_TAG=${SEMVER} PAT=${{ secrets.GITHUB_TOKEN }} release
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ needs.set-version.outputs.semVer }}
# TODO: add additional info to the release
generate_release_notes: true
token: ${{ secrets.GITHUB_TOKEN }}
files: ./dist/*
prerelease: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ vendor/
.vscode

.ignore*
local/
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OWNER := dnitsch
OWNER := DevLabFoundry
NAME := aws-cli-auth
GIT_TAG := 0.11.11
VERSION := v$(GIT_TAG)
Expand All @@ -9,10 +9,9 @@ LDFLAGS := -ldflags="-s -w -X \"github.com/$(OWNER)/$(NAME)/cmd.Version=$(VERSIO
.PHONY: test test_ci tidy install buildprep build buildmac buildwin

test: test_prereq
go test ./... -v -mod=readonly -coverprofile=.coverage/out -race > .coverage/test.out ; \
go test ./... -v -mod=readonly -coverprofile=.coverage/out -race | tee .coverage/test.out ; \
cat .coverage/test.out | go-junit-report > .coverage/report-junit.xml ; \
gocov convert .coverage/out | gocov-xml > .coverage/report-cobertura.xml ; \
cat .coverage/test.out
gocov convert .coverage/out | gocov-xml > .coverage/report-cobertura.xml

test_ci:
go test ./... -mod=readonly
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/dnitsch/aws-cli-auth)](https://goreportcard.com/report/github.com/dnitsch/aws-cli-auth)
[![Go Report Card](https://goreportcard.com/badge/github.com/DevLabFoundry/aws-cli-auth)](https://goreportcard.com/report/github.com/DevLabFoundry/aws-cli-auth)
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=dnitsch_aws-cli-auth&metric=bugs)](https://sonarcloud.io/summary/new_code?id=dnitsch_aws-cli-auth)
[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=dnitsch_aws-cli-auth&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=dnitsch_aws-cli-auth)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=dnitsch_aws-cli-auth&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=dnitsch_aws-cli-auth)
Expand Down
2 changes: 1 addition & 1 deletion aws-cli-auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"context"

"github.com/dnitsch/aws-cli-auth/cmd"
"github.com/DevLabFoundry/aws-cli-auth/cmd"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/clear.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"os/user"

"github.com/dnitsch/aws-cli-auth/internal/credentialexchange"
"github.com/dnitsch/aws-cli-auth/internal/web"
"github.com/DevLabFoundry/aws-cli-auth/internal/credentialexchange"
"github.com/DevLabFoundry/aws-cli-auth/internal/web"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"testing"

"github.com/dnitsch/aws-cli-auth/cmd"
"github.com/DevLabFoundry/aws-cli-auth/cmd"
)

func Test_helpers_for_command(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/sts"
"github.com/dnitsch/aws-cli-auth/internal/cmdutils"
"github.com/dnitsch/aws-cli-auth/internal/credentialexchange"
"github.com/dnitsch/aws-cli-auth/internal/web"
"github.com/DevLabFoundry/aws-cli-auth/internal/cmdutils"
"github.com/DevLabFoundry/aws-cli-auth/internal/credentialexchange"
"github.com/DevLabFoundry/aws-cli-auth/internal/web"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/specific.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/sts"
"github.com/dnitsch/aws-cli-auth/internal/credentialexchange"
"github.com/DevLabFoundry/aws-cli-auth/internal/credentialexchange"
"github.com/spf13/cobra"
)

Expand Down
10 changes: 5 additions & 5 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,33 @@
MacOS

```bash
curl -L https://github.com/dnitsch/aws-cli-auth/releases/latest/download/aws-cli-auth-darwin -o aws-cli-auth
curl -L https://github.com/DevLabFoundry/aws-cli-auth/releases/latest/download/aws-cli-auth-darwin -o aws-cli-auth
chmod +x aws-cli-auth
sudo mv aws-cli-auth /usr/local/bin
```

Linux

```bash
curl -L https://github.com/dnitsch/aws-cli-auth/releases/latest/download/aws-cli-auth-linux -o aws-cli-auth
curl -L https://github.com/DevLabFoundry/aws-cli-auth/releases/latest/download/aws-cli-auth-linux -o aws-cli-auth
chmod +x aws-cli-auth
sudo mv aws-cli-auth /usr/local/bin
```

Windows

```posh
iwr -Uri "https://github.com/dnitsch/aws-cli-auth/releases/latest/download/aws-cli-auth-windows.exe" -OutFile "aws-cli-auth"
iwr -Uri "https://github.com/DevLabFoundry/aws-cli-auth/releases/latest/download/aws-cli-auth-windows.exe" -OutFile "aws-cli-auth"
```

## Versioned

Download a specific version from [Releases page](https://github.com/dnitsch/aws-cli-auth/releases)
Download a specific version from [Releases page](https://github.com/DevLabFoundry/aws-cli-auth/releases)

example for MacOS

```bash
curl -L https://github.com/dnitsch/aws-cli-auth/releases/download/v0.11.0/aws-cli-auth-darwin -o aws-cli-auth
curl -L https://github.com/DevLabFoundry/aws-cli-auth/releases/download/v0.11.0/aws-cli-auth-darwin -o aws-cli-auth
chmod +x aws-cli-auth
sudo mv aws-cli-auth /usr/local/bin
```
63 changes: 30 additions & 33 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,46 +1,43 @@
module github.com/dnitsch/aws-cli-auth
module github.com/DevLabFoundry/aws-cli-auth

go 1.21
go 1.24.1

require (
github.com/aws/aws-sdk-go-v2 v1.24.1
github.com/aws/smithy-go v1.19.0
github.com/aws/aws-sdk-go-v2 v1.36.3
github.com/aws/aws-sdk-go-v2/config v1.29.12
github.com/aws/aws-sdk-go-v2/service/sts v1.33.17
github.com/aws/smithy-go v1.22.3
github.com/go-rod/rod v0.116.2
github.com/mitchellh/go-ps v1.0.0
github.com/spf13/cobra v1.8.0
github.com/zalando/go-keyring v0.2.3
github.com/spf13/cobra v1.9.1
github.com/werf/lockgate v0.1.1
github.com/zalando/go-keyring v0.2.6
gopkg.in/ini.v1 v1.67.0
)

require (
github.com/alessio/shellescape v1.4.2 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.16.16 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.11 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.10 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.10 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.7.3 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.4 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.10 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.18.7 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.7 // indirect
github.com/danieljoos/wincred v1.2.1 // indirect
al.essio.dev/pkg/shellescape v1.6.0 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.65 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.30 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.34 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.34 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.15 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.25.2 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.0 // indirect
github.com/danieljoos/wincred v1.2.2 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/gofrs/flock v0.8.1 // indirect
github.com/gofrs/flock v0.12.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/ysmood/fetchup v0.2.4 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/ysmood/fetchup v0.3.0 // indirect
github.com/ysmood/goob v0.4.0 // indirect
github.com/ysmood/got v0.39.4 // indirect
github.com/ysmood/got v0.40.0 // indirect
github.com/ysmood/gson v0.7.3 // indirect
github.com/ysmood/leakless v0.8.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
)

require (
github.com/aws/aws-sdk-go-v2/config v1.26.6
github.com/aws/aws-sdk-go-v2/service/sts v1.26.7
github.com/go-rod/rod v0.114.6
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/werf/lockgate v0.1.1
golang.org/x/sys v0.16.0 // indirect
gopkg.in/ini.v1 v1.67.0
github.com/ysmood/leakless v0.9.0 // indirect
golang.org/x/crypto v0.36.0 // indirect
golang.org/x/sys v0.31.0 // indirect
)
Loading
Loading