Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hashicorp/go-getter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.6.2
Choose a base ref
...
head repository: hashicorp/go-getter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.7.0
Choose a head ref

Commits on Jun 29, 2022

  1. Copy the full SHA
    293f9e2 View commit details

Commits on Aug 30, 2022

  1. Update S3 URL in README

    The bucket access info located in the previous URL has been moved to a separate page.
    twelvelabs authored Aug 30, 2022
    Copy the full SHA
    89add64 View commit details

Commits on Sep 20, 2022

  1. Copy the full SHA
    48342dd View commit details
  2. migrate go-getter to GHA

    claire-labry committed Sep 20, 2022
    Copy the full SHA
    592a7c8 View commit details
  3. disable aws tests

    claire-labry committed Sep 20, 2022
    Copy the full SHA
    3079b2a View commit details

Commits on Sep 21, 2022

  1. add env var

    claire-labry committed Sep 21, 2022
    Copy the full SHA
    4cd1421 View commit details

Commits on Sep 26, 2022

  1. Copy the full SHA
    7b76199 View commit details
  2. Change AWS OIDC audience

    dpowley committed Sep 26, 2022
    Copy the full SHA
    61e02f1 View commit details
  3. Update test s3 bucket name

    dpowley committed Sep 26, 2022
    Copy the full SHA
    c596b42 View commit details
  4. Enable keyless GCP testing

    dpowley committed Sep 26, 2022
    Copy the full SHA
    3e428c4 View commit details
  5. Bump GCP libraries for WIF

    dpowley committed Sep 26, 2022
    Copy the full SHA
    d57df6e View commit details
  6. Copy the full SHA
    b6335dc View commit details
  7. Copy the full SHA
    b279273 View commit details
  8. Update GCS object versions

    dpowley committed Sep 26, 2022
    Copy the full SHA
    98db99c View commit details

Commits on Sep 27, 2022

  1. Copy the full SHA
    e7c9a3a View commit details
  2. Copy the full SHA
    9063526 View commit details
  3. fix setup cache action

    claire-labry committed Sep 27, 2022
    Copy the full SHA
    d305097 View commit details
  4. adding pr feedback

    claire-labry committed Sep 27, 2022
    Copy the full SHA
    0f1552a View commit details

Commits on Sep 28, 2022

  1. Copy the full SHA
    936fda0 View commit details

Commits on Oct 3, 2022

  1. Update .github/workflows/go-getter.yml

    Co-authored-by: Sam Salisbury <samsalisbury@gmail.com>
    claire-labry and samsalisbury authored Oct 3, 2022
    Copy the full SHA
    6b06366 View commit details
  2. Copy the full SHA
    a1abc4b View commit details

Commits on Oct 10, 2022

  1. Update aws sdk version

    jukie committed Oct 10, 2022
    Copy the full SHA
    202f045 View commit details

Commits on Oct 12, 2022

  1. Merge pull request #384 from Jukie/main

    Update aws sdk version
    kmoe authored Oct 12, 2022
    Copy the full SHA
    bc428bb View commit details
  2. Merge pull request #378 from twelvelabs/patch-1

    Update S3 URL in README
    kmoe authored Oct 12, 2022
    Copy the full SHA
    f7a8c48 View commit details
  3. [COMPLIANCE] Update MPL 2.0 LICENSE

    hashicorp-copywrite[bot] authored Oct 12, 2022
    Copy the full SHA
    ec8a5bf View commit details

Commits on Oct 25, 2022

  1. Copy the full SHA
    d2f3d7b View commit details
  2. go mod tidy

    claire-labry committed Oct 25, 2022
    Copy the full SHA
    d5725c7 View commit details
  3. fix git getter

    claire-labry committed Oct 25, 2022
    Copy the full SHA
    bad826d View commit details

Commits on Oct 26, 2022

  1. remove init from s3 file

    claire-labry committed Oct 26, 2022
    Copy the full SHA
    cc303a6 View commit details
  2. Copy the full SHA
    47ecbb0 View commit details
  3. Update get_s3_test.go

    Co-authored-by: Kent 'picat' Gruber <kent@hashicorp.com>
    claire-labry and picatz authored Oct 26, 2022
    Copy the full SHA
    95c5f2d View commit details
  4. Update get_gcs_test.go

    Co-authored-by: Kent 'picat' Gruber <kent@hashicorp.com>
    claire-labry and picatz authored Oct 26, 2022
    Copy the full SHA
    2daac52 View commit details
  5. Merge pull request #379 from hashicorp/migrate-to-gha

    Migrate to GHA
    claire-labry authored Oct 26, 2022
    Copy the full SHA
    7220a3d View commit details
  6. Merge pull request #386 from hashicorp/compliance/add-license

    [COMPLIANCE] Update MPL 2.0 LICENSE
    nywilken authored Oct 26, 2022
    Copy the full SHA
    611343a View commit details

Commits on Jan 24, 2023

  1. Copy the full SHA
    b55f8f7 View commit details

Commits on Jan 25, 2023

  1. Merge pull request #408 from hashicorp/remove-codesign

    remove codesign entirely from go-getter
    claire-labry authored Jan 25, 2023
    Copy the full SHA
    d229395 View commit details

Commits on Feb 8, 2023

  1. Copy the full SHA
    cf15d84 View commit details

Commits on Feb 9, 2023

  1. Merge pull request #412 from hashicorp/mitigate-decompression-bomb

    Add decompression bomb mitigation options for v1
    picatz authored Feb 9, 2023
    Copy the full SHA
    78e6721 View commit details
  2. decompressors: add LimitedDecompressors helper

    This PR adds helper function LimitedDecompressors(filesLimit, fileSizeLimit)
    for creating the same suite of decompressors as Decompressors, but all configured
    with the given filesLimit and fileSizeLimit (where applicable).
    shoenig committed Feb 9, 2023
    Copy the full SHA
    b38771f View commit details

Commits on Feb 10, 2023

  1. Merge pull request #413 from hashicorp/limited-decompressors-helper

    v1: decompressors: add LimitedDecompressors helper
    shoenig authored Feb 10, 2023
    Copy the full SHA
    0edab85 View commit details
176 changes: 0 additions & 176 deletions .circleci/config.yml

This file was deleted.

158 changes: 158 additions & 0 deletions .github/workflows/go-getter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
name: go-getter

on: [push]

env:
TEST_RESULTS_PATH: /tmp/test-results

jobs:

linux-tests:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- 1.17
- 1.18
- 1.19
permissions:
id-token: write
contents: read
steps:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v3

- name: Create test directory
run: |
mkdir -p ${{ env.TEST_RESULTS_PATH }}
- name: Setup cache for go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download go modules
run: go mod download

# Check go fmt output because it does not report non-zero when there are fmt changes
- name: Run gofmt
run: |
go fmt ./...
files=$(go fmt ./...)
if [ -n "$files" ]; then
echo "The following file(s) do not conform to go fmt:"
echo "$files"
exit 1
fi
- name: Install gotestsum
run: go install gotest.tools/gotestsum@v1.8.2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::388664967494:role/hc-go-getter-test
role-session-name: ${{ github.run_id }}
audience: https://github.com/hashicorp

- name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v0.4.0'
with:
workload_identity_provider: 'projects/328212837253/locations/global/workloadIdentityPools/hc-go-getter-test/providers/github-hc-go-getter-test'
service_account: hc-go-getter-test@hc-e56c0f7c21c448d2be9e7696073.iam.gserviceaccount.com
audience: https://github.com/hashicorp

- name: Run go tests
run: |
PACKAGE_NAMES=$(go list ./...)
echo "Running $(echo $PACKAGE_NAMES | wc -w) packages"
echo $PACKAGE_NAMES
gotestsum --format=short-verbose --junitfile $TEST_RESULTS_PATH/go-getter/gotestsum-report.xml -- -p 2 -cover -coverprofile=linux_cov.part $PACKAGE_NAMES
# Save coverage report parts
- name: Upload and save artifacts
uses: actions/upload-artifact@v3
with:
name: linux test results
path: linux_cov.part

windows-tests:
runs-on: windows-latest
strategy:
matrix:
go-version:
- 1.17
- 1.18
- 1.19
permissions:
id-token: write
contents: read
steps:
- name: Run git config #Windows-only
run: git config --global core.autocrlf false

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v3

- name: Setup cache for go modules
uses: actions/cache@v3
with:
path: |
~\AppData\Local\go-build
~\go\pkg\mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download go modules
run: go mod download

- name: Install gotestsum
shell: bash
run: go install gotest.tools/gotestsum@v1.8.2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::388664967494:role/hc-go-getter-test
role-session-name: ${{ github.run_id }}
audience: https://github.com/hashicorp

- name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v0.4.0'
with:
workload_identity_provider: 'projects/328212837253/locations/global/workloadIdentityPools/hc-go-getter-test/providers/github-hc-go-getter-test'
service_account: hc-go-getter-test@hc-e56c0f7c21c448d2be9e7696073.iam.gserviceaccount.com
audience: https://github.com/hashicorp

- name: Run go tests
shell: bash
run: |
PACKAGE_NAMES=$(go list ./...)
echo "Running $(echo $PACKAGE_NAMES | wc -w) packages"
echo $PACKAGE_NAMES
gotestsum --format=short-verbose --junitfile $TEST_RESULTS_PATH/go-getter/gotestsum-report.xml -- -p 2 -cover -race -coverprofile=win_cov.part $PACKAGE_NAMES
# Save coverage report parts
- name: Upload and save artifacts
uses: actions/upload-artifact@v3
with:
name: windows test results
path: win_cov.part
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -27,15 +27,7 @@ jobs:
uses: hashicorp/setup-signore@v1
with:
github-token: ${{secrets.SIGNORE_TOKEN}}
- name: Install hc-codesign
id: codesign
run: |
docker login docker.pkg.github.com -u docker -p $GITHUB_TOKEN && \
docker pull docker.pkg.github.com/hashicorp/hc-codesign/hc-codesign:$VERSION && \
echo "::set-output name=image::docker.pkg.github.com/hashicorp/hc-codesign/hc-codesign:$VERSION"
env:
VERSION: v0
GITHUB_TOKEN: ${{ secrets.CODESIGN_GITHUB_TOKEN }}

- name: Install wget & clamAV antivirus scanner
run : |
sudo apt-get update
@@ -60,7 +52,6 @@ jobs:
args: release --skip-validate --timeout "60m"
env:
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}
CODESIGN_IMAGE: ${{ steps.codesign.outputs.image }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }}
ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }}
9 changes: 0 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -8,15 +8,6 @@ builds:
- darwin_amd64
- windows_386
- windows_amd64
hooks:
post: |
docker run
-e ARTIFACTORY_TOKEN={{ .Env.ARTIFACTORY_TOKEN }}
-e ARTIFACTORY_USER={{ .Env.ARTIFACTORY_USER }}
-e CIRCLE_TOKEN={{ .Env.CIRCLE_TOKEN }}
-v {{ dir .Path }}:/workdir
{{ .Env.CODESIGN_IMAGE }}
sign -product-name={{ .ProjectName }} {{ .Name }}
dir: ./cmd/go-getter/
flags:
- -trimpath
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Copyright (c) 2015 HashiCorp, Inc.

Mozilla Public License, version 2.0

1. Definitions
Loading