Skip to content

Commit 5872e00

Browse files
authored
fix: support all grc codecommit variants (#28)
1 parent e8dcf56 commit 5872e00

19 files changed

Lines changed: 119 additions & 140 deletions

File tree

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021 Gemba Advantage
1+
# Copyright (c) 2022 Gemba Advantage
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining a copy
44
# of this software and associated documentation files (the "Software"), to deal

.github/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021 Gemba Advantage
1+
# Copyright (c) 2022 Gemba Advantage
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining a copy
44
# of this software and associated documentation files (the "Software"), to deal

.github/workflows/ci.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021 Gemba Advantage
1+
# Copyright (c) 2022 Gemba Advantage
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining a copy
44
# of this software and associated documentation files (the "Software"), to deal
@@ -36,19 +36,32 @@ jobs:
3636
- name: Setup Go
3737
uses: actions/setup-go@v2
3838
with:
39-
go-version: 1.16
39+
go-version: 1.17
40+
- name: Cache Go
41+
uses: actions/cache@v2
42+
with:
43+
path: |
44+
~/go/pkg/mod
45+
~/.cache/go-build
46+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
47+
restore-keys: |
48+
${{ runner.os }}-go-
49+
- name: Install Task
50+
uses: arduino/setup-task@v1
4051
- name: Lint
4152
uses: golangci/golangci-lint-action@v3.1.0
4253
with:
4354
skip-go-installation: true
4455
- name: Test
45-
run: make test
56+
run: task test
4657
- name: Code Coverage
4758
uses: codecov/codecov-action@v2.0.3
4859
- name: Build
49-
run: make build
60+
run: task build
5061
- name: Tag
5162
if: github.ref == 'refs/heads/main'
52-
uses: gembaadvantage/uplift-action@v1
63+
uses: gembaadvantage/uplift-action@v2.0.1
64+
with:
65+
args: tag
5366
env:
5467
GITHUB_TOKEN: ${{ secrets.GH_UPLIFT }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021 Gemba Advantage
1+
# Copyright (c) 2022 Gemba Advantage
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining a copy
44
# of this software and associated documentation files (the "Software"), to deal
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup Go
3535
uses: actions/setup-go@v2
3636
with:
37-
go-version: 1.16
37+
go-version: 1.17
3838
- name: Import GPG key
3939
id: import_gpg
4040
uses: hashicorp/ghaction-import-gpg@v2.1.0

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021 Gemba Advantage
1+
# Copyright (c) 2022 Gemba Advantage
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining a copy
44
# of this software and associated documentation files (the "Software"), to deal

.goreleaser.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021 Gemba Advantage
1+
# Copyright (c) 2022 Gemba Advantage
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining a copy
44
# of this software and associated documentation files (the "Software"), to deal
@@ -61,10 +61,13 @@ archives:
6161
files:
6262
- README.md
6363
- LICENSE
64+
6465
checksum:
6566
name_template: "{{ .ProjectName }}_{{ .Tag }}_checksums.txt"
67+
6668
signs:
6769
- artifacts: checksum
70+
6871
brews:
6972
- name: git-remote-codecommit
7073
tap:
@@ -79,10 +82,19 @@ brews:
7982
test: |
8083
installed_version = shell_output("#{bin}/git-remote-codecommit version --short 2>&1")
8184
assert_match "v#{version}", installed_version
85+
8286
scoop:
8387
bucket:
8488
owner: gembaadvantage
8589
name: scoops
8690
homepage: "https://github.com/gembaadvantage/git-remote-codecommit"
8791
description: "A git remote helper that removes the need for dedicated CodeCommit user credentials"
8892
license: MIT
93+
94+
rigs:
95+
- rig:
96+
owner: gembaadvantage
97+
name: fish-food
98+
homepage: "https://github.com/gembaadvantage/git-remote-codecommit"
99+
description: "A git remote helper that removes the need for dedicated CodeCommit user credentials"
100+
license: MIT

.uplift.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021 Gemba Advantage
1+
# Copyright (c) 2022 Gemba Advantage
22
#
33
# Permission is hereby granted, free of charge, to any person obtaining a copy
44
# of this software and associated documentation files (the "Software"), to deal

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Gemba Advantage
3+
Copyright (c) 2022 Gemba Advantage
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 0 additions & 67 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ curl https://raw.githubusercontent.com/gembaadvantage/git-remote-codecommit/main
3535

3636
Clone the repository using your standard git syntax, but provide the clone URL using the `codecommit` protocol format of:
3737

38-
```text
39-
codecommit::<REGION>://<PROFILE>@<REPOSITORY>
40-
```
38+
- `codecommit://repository`
39+
- `codecommit://profile@repository`
40+
- `codecommit::region://repository`
41+
- `codecommit::region://profile@repository`
4142

4243
```sh
4344
$ git clone codecommit::eu-west-1://repository
@@ -52,7 +53,7 @@ Both `git pull` and `git push` operations will behave as normal.
5253

5354
### AWS Named Profile
5455

55-
Depending on your chosen authentication mechansim, you may need to provide an AWS named profile to authenticate with CodeCommit. To do this, provide the named profile, suffixed with an `@`, before the repository name.
56+
Depending on your chosen authentication mechanism, you may need to provide an AWS named profile to authenticate with CodeCommit. To do this, prefix your repository name with `profile@`.
5657

5758
```sh
5859
git clone codecommit::eu-west-1://profile@repository

0 commit comments

Comments
 (0)