Move from cloudskiff to snyk org

main v0.1.7
William Beuil 2021-12-14 14:31:57 +01:00
parent 6be7a1508d
commit 650e4cf331
No known key found for this signature in database
GPG Key ID: BED2072C5C2BF537
5 changed files with 63 additions and 67 deletions

View File

@ -3,7 +3,7 @@
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/wbeuil/dctlenv/Test%20Workflow)
[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg)](#contributors-)
Version manager for [driftctl](https://github.com/cloudskiff/driftctl) inspired by [tfenv](https://github.com/tfutils/tfenv).
Version manager for [driftctl](https://github.com/snyk/driftctl) inspired by [tfenv](https://github.com/tfutils/tfenv).
## Installation
@ -66,9 +66,9 @@ Available options:
```console
$ dctlenv install 0.2.3
Installing driftctl v0.2.3
Downloading release tarball from https://github.com/cloudskiff/driftctl/releases/download/v0.2.3/driftctl_darwin_amd64
Downloading release tarball from https://github.com/snyk/driftctl/releases/download/v0.2.3/driftctl_darwin_amd64
######################################################################################################################## 100.0%
Downloading SHA256 hashes file from https://github.com/cloudskiff/driftctl/releases/download/v0.2.3/driftctl_SHA256SUMS
Downloading SHA256 hashes file from https://github.com/snyk/driftctl/releases/download/v0.2.3/driftctl_SHA256SUMS
No SHA256 hashes file available. Skipping SHA256 hash validation
Installation of driftctl v0.2.3 successful. To make this your default version, run 'dctlenv use 0.2.3'
```
@ -87,15 +87,11 @@ gpg: imported: 1
# Install and verify signature
$ DCTLENV_PGP=1 dctlenv install 0.4.0
Installing driftctl v0.4.0
Downloading release tarball from https://github.com/cloudskiff/driftctl/releases/download/v0.4.0/driftctl_darwin_amd64
Downloading release tarball from https://github.com/snyk/driftctl/releases/download/v0.4.0/driftctl_darwin_amd64
######################################################################################################################## 100.0%
Downloading SHA256 hashes file from https://github.com/cloudskiff/driftctl/releases/download/v0.4.0/driftctl_SHA256SUMS
Downloading SHA256 hashes file from https://github.com/snyk/driftctl/releases/download/v0.4.0/driftctl_SHA256SUMS
SHA256 hash matched!
Downloading SHA256 hashes signature file from https://github.com/cloudskiff/driftctl/releases/download/v0.4.0/driftctl_SHA256SUMS.gpg
gpg: Signature made Mon Feb 8 18:59:40 2021 CET
gpg: using EDDSA key 277666005A7F01D484F6376DACC776A79C824EBD
gpg: issuer "security@cloudskiff.com"
gpg: Good signature from "Cloudskiff <security@cloudskiff.com>" [ultimate]
Downloading SHA256 hashes signature file from https://github.com/snyk/driftctl/releases/download/v0.4.0/driftctl_SHA256SUMS.gpg
PGP signature matched!
Installation of driftctl v0.4.0 successful. To make this your default version, run 'dctlenv use 0.4.0'
```

View File

@ -53,7 +53,7 @@ case "${DCTLENV_CURL:-0}" in
;;
esac
driftctl_url="https://github.com/cloudskiff/driftctl/releases/download"
driftctl_url="https://github.com/snyk/driftctl/releases/download"
echo "Installing driftctl v$version"

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -uo pipefail
driftctl_url=https://api.github.com/repos/cloudskiff/driftctl/tags\?page\=1\&per_page\=1000
driftctl_url=https://api.github.com/repos/snyk/driftctl/tags\?page\=1\&per_page\=1000
remote_versions="$(curlw -sSf $driftctl_url)" || log_error "Failed to download remote versions from GitHub"

View File

@ -61,7 +61,7 @@ setup() {
assert_failure
assert_output <<OUT
Installing driftctl v0.3.1
Downloading release tarball from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading release tarball from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Tarball download failed
OUT
}
@ -80,8 +80,8 @@ OUT
assert_failure
assert_output <<OUT
Installing driftctl v0.3.1
Downloading release tarball from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
Downloading release tarball from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
No SHA256 hashes file available. Skipping SHA256 hash validation
Fail to make the binary executable
OUT
@ -102,8 +102,8 @@ OUT
assert_success
assert_output <<OUT
Installing driftctl v0.3.1
Downloading release tarball from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
Downloading release tarball from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
No SHA256 hashes file available. Skipping SHA256 hash validation
Installation of driftctl v0.3.1 successful. To make this your default version, run 'dctlenv use 0.3.1'
OUT
@ -124,8 +124,8 @@ OUT
assert_failure
assert_output <<OUT
Installing driftctl v0.3.1
Downloading release tarball from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
Downloading release tarball from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
SHA256 hash does not match!
OUT
assert [ -e "$DCTLENV_TMPDIR/versions/0.3.1/driftctl_SHA256SUMS" ]
@ -145,8 +145,8 @@ OUT
assert_success
assert_output <<OUT
Installing driftctl v0.3.1
Downloading release tarball from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
Downloading release tarball from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
SHA256 hash matched!
Installation of driftctl v0.3.1 successful. To make this your default version, run 'dctlenv use 0.3.1'
OUT
@ -167,8 +167,8 @@ OUT
assert_success
assert_output <<OUT
Installing driftctl v0.3.1
Downloading release tarball from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
Downloading release tarball from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
SHA256 hash matched!
Installation of driftctl v0.3.1 successful. To make this your default version, run 'dctlenv use 0.3.1'
OUT
@ -189,8 +189,8 @@ OUT
assert_success
assert_output <<OUT
Installing driftctl v0.3.1
Downloading release tarball from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
Downloading release tarball from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
SHA256 hash matched!
Installation of driftctl v0.3.1 successful. To make this your default version, run 'dctlenv use 0.3.1'
OUT
@ -211,10 +211,10 @@ OUT
assert_success
assert_output <<OUT
Installing driftctl v0.3.1
Downloading release tarball from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
Downloading release tarball from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
SHA256 hash matched!
Downloading SHA256 hashes signature file from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS.gpg
Downloading SHA256 hashes signature file from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS.gpg
No SHA256 hashes signature file available. Skipping signature validation
Installation of driftctl v0.3.1 successful. To make this your default version, run 'dctlenv use 0.3.1'
OUT
@ -238,10 +238,10 @@ OUT
assert_failure
assert_output <<OUT
Installing driftctl v0.3.1
Downloading release tarball from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
Downloading release tarball from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
SHA256 hash matched!
Downloading SHA256 hashes signature file from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS.gpg
Downloading SHA256 hashes signature file from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS.gpg
PGP signature rejected!
OUT
assert [ -e "$DCTLENV_TMPDIR/versions/0.3.1/driftctl_SHA256SUMS" ]
@ -264,10 +264,10 @@ OUT
assert_success
assert_output <<OUT
Installing driftctl v0.3.1
Downloading release tarball from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
Downloading release tarball from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_linux_amd64
Downloading SHA256 hashes file from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS
SHA256 hash matched!
Downloading SHA256 hashes signature file from https://github.com/cloudskiff/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS.gpg
Downloading SHA256 hashes signature file from https://github.com/snyk/driftctl/releases/download/v0.3.1/driftctl_SHA256SUMS.gpg
PGP signature matched!
Installation of driftctl v0.3.1 successful. To make this your default version, run 'dctlenv use 0.3.1'
OUT

View File

@ -1,111 +1,111 @@
[
{
"name": "v1.0.0",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v1.0.0",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v1.0.0",
"zipball_url": "https://api.github.com/repos/snyk/driftctl/zipball/v1.0.0",
"tarball_url": "https://api.github.com/repos/snyk/driftctl/tarball/v1.0.0",
"commit": {
"sha": "cdea16b5dbca1c6205068d74b092b3e5284cabbd",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/cdea16b5dbca1c6205068d74b092b3e5284cabbd"
"url": "https://api.github.com/repos/snyk/driftctl/commits/cdea16b5dbca1c6205068d74b092b3e5284cabbd"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4zLjE="
},
{
"name": "v0.11.0",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v0.11.0",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v0.11.0",
"zipball_url": "https://api.github.com/repos/snyk/driftctl/zipball/v0.11.0",
"tarball_url": "https://api.github.com/repos/snyk/driftctl/tarball/v0.11.0",
"commit": {
"sha": "cdea16b5dbca1c6205068d74b092b3e5284cabbd",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/cdea16b5dbca1c6205068d74b092b3e5284cabbd"
"url": "https://api.github.com/repos/snyk/driftctl/commits/cdea16b5dbca1c6205068d74b092b3e5284cabbd"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4zLjE="
},
{
"name": "v0.10.0",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v0.10.0",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v0.10.0",
"zipball_url": "https://api.github.com/repos/snyk/driftctl/zipball/v0.10.0",
"tarball_url": "https://api.github.com/repos/snyk/driftctl/tarball/v0.10.0",
"commit": {
"sha": "cdea16b5dbca1c6205068d74b092b3e5284cabbd",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/cdea16b5dbca1c6205068d74b092b3e5284cabbd"
"url": "https://api.github.com/repos/snyk/driftctl/commits/cdea16b5dbca1c6205068d74b092b3e5284cabbd"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4zLjE="
},
{
"name": "v0.3.1",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v0.3.1",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v0.3.1",
"zipball_url": "https://api.github.com/repos/snyk/driftctl/zipball/v0.3.1",
"tarball_url": "https://api.github.com/repos/snyk/driftctl/tarball/v0.3.1",
"commit": {
"sha": "cdea16b5dbca1c6205068d74b092b3e5284cabbd",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/cdea16b5dbca1c6205068d74b092b3e5284cabbd"
"url": "https://api.github.com/repos/snyk/driftctl/commits/cdea16b5dbca1c6205068d74b092b3e5284cabbd"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4zLjE="
},
{
"name": "v0.3.0",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v0.3.0",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v0.3.0",
"zipball_url": "https://api.github.com/repos/snyk/driftctl/zipball/v0.3.0",
"tarball_url": "https://api.github.com/repos/snyk/driftctl/tarball/v0.3.0",
"commit": {
"sha": "df91468764388841ab0ddf82e793f82372fe8fb7",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/df91468764388841ab0ddf82e793f82372fe8fb7"
"url": "https://api.github.com/repos/snyk/driftctl/commits/df91468764388841ab0ddf82e793f82372fe8fb7"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4zLjA="
},
{
"name": "v0.2.3",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v0.2.3",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v0.2.3",
"zipball_url": "https://api.github.com/repos/snyk/driftctl/zipball/v0.2.3",
"tarball_url": "https://api.github.com/repos/snyk/driftctl/tarball/v0.2.3",
"commit": {
"sha": "d3c1e7242767d8425410e9dd49ae6c69eb46f41e",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/d3c1e7242767d8425410e9dd49ae6c69eb46f41e"
"url": "https://api.github.com/repos/snyk/driftctl/commits/d3c1e7242767d8425410e9dd49ae6c69eb46f41e"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4yLjM="
},
{
"name": "v0.2.2",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v0.2.2",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v0.2.2",
"zipball_url": "https://api.github.com/repos/snyk/driftctl/zipball/v0.2.2",
"tarball_url": "https://api.github.com/repos/snyk/driftctl/tarball/v0.2.2",
"commit": {
"sha": "e42dd7303bb8c7e48b3788fa72e0e37da95f26f8",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/e42dd7303bb8c7e48b3788fa72e0e37da95f26f8"
"url": "https://api.github.com/repos/snyk/driftctl/commits/e42dd7303bb8c7e48b3788fa72e0e37da95f26f8"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4yLjI="
},
{
"name": "v0.2.1",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v0.2.1",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v0.2.1",
"zipball_url": "https://api.github.com/repos/snyk/driftctl/zipball/v0.2.1",
"tarball_url": "https://api.github.com/repos/snyk/driftctl/tarball/v0.2.1",
"commit": {
"sha": "1abe9656e21e9c29aa856983482a794d332ba335",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/1abe9656e21e9c29aa856983482a794d332ba335"
"url": "https://api.github.com/repos/snyk/driftctl/commits/1abe9656e21e9c29aa856983482a794d332ba335"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4yLjE="
},
{
"name": "v0.2.0",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v0.2.0",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v0.2.0",
"zipball_url": "https://api.github.com/repos/snyk/driftctl/zipball/v0.2.0",
"tarball_url": "https://api.github.com/repos/snyk/driftctl/tarball/v0.2.0",
"commit": {
"sha": "28b44e57d75dcd8a267472f60ccf5fe2abc423f2",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/28b44e57d75dcd8a267472f60ccf5fe2abc423f2"
"url": "https://api.github.com/repos/snyk/driftctl/commits/28b44e57d75dcd8a267472f60ccf5fe2abc423f2"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4yLjA="
},
{
"name": "v0.1.1",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v0.1.1",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v0.1.1",
"zipball_url": "https://api.github.com/repos/snyk/driftctl/zipball/v0.1.1",
"tarball_url": "https://api.github.com/repos/snyk/driftctl/tarball/v0.1.1",
"commit": {
"sha": "621463ef22f8ce0731998cfc3775af2135c2adbf",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/621463ef22f8ce0731998cfc3775af2135c2adbf"
"url": "https://api.github.com/repos/snyk/driftctl/commits/621463ef22f8ce0731998cfc3775af2135c2adbf"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4xLjE="
},
{
"name": "v0.1.0",
"zipball_url": "https://api.github.com/repos/cloudskiff/driftctl/zipball/v0.1.0",
"tarball_url": "https://api.github.com/repos/cloudskiff/driftctl/tarball/v0.1.0",
"zipball_url": "https://api.github.com/repos/snyk/driftctl/zipball/v0.1.0",
"tarball_url": "https://api.github.com/repos/snyk/driftctl/tarball/v0.1.0",
"commit": {
"sha": "ff72de8e77f908fba61df50bc0938744270d1b51",
"url": "https://api.github.com/repos/cloudskiff/driftctl/commits/ff72de8e77f908fba61df50bc0938744270d1b51"
"url": "https://api.github.com/repos/snyk/driftctl/commits/ff72de8e77f908fba61df50bc0938744270d1b51"
},
"node_id": "MDM6UmVmMjk3NjIyOTQ1OnJlZnMvdGFncy92MC4xLjA="
}