Compare commits
5 Commits
0.1
...
bump-toolh
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5784e24e1 | ||
|
|
916f475bc3 | ||
|
|
36348c0701 | ||
|
|
3d55cd5476 | ||
|
|
3fbf5769dc |
23
README.md
23
README.md
@@ -22,10 +22,10 @@ $ scripts/task-install.sh
|
||||
|
||||
## Workflows
|
||||
|
||||
Common workflows for the creation, maintantenance, usage of the installation scripts are encapsulated in [Task](https://taskfile.dev) tasks.
|
||||
Common workflows for the creation, maintenance, usage of the installation scripts are encapsulated in [Task](https://taskfile.dev) tasks.
|
||||
|
||||
```
|
||||
# list availale tasks
|
||||
```bash
|
||||
# list available tasks
|
||||
$ task --list
|
||||
|
||||
task: Available tasks for this project:
|
||||
@@ -42,15 +42,21 @@ $ task install-trufflehog
|
||||
|
||||
### Creating New Installation Scripts
|
||||
|
||||
The default task creates a new installation script for a binary from its GitHub
|
||||
repository. This is often the only step needed to add a new installation script
|
||||
to the collection.
|
||||
The default task uses binstaller to creates a new installation script for a binary from
|
||||
its GitHub repository. This is often the only step needed to add a new installation
|
||||
script to the collection.
|
||||
|
||||
To install binstaller, run:
|
||||
```bash
|
||||
$ scripts/binstaller-install.sh
|
||||
```
|
||||
|
||||
To create a new installation script:
|
||||
```bash
|
||||
# create a new installation script by providing the GitHub repository as an argument:
|
||||
$ task REPO=owner/repo-name
|
||||
|
||||
# summarize the default task
|
||||
# detailes summary
|
||||
$ task --summary
|
||||
task: default
|
||||
|
||||
@@ -59,7 +65,8 @@ embedding checksums, and generating the installation script. The latest release,
|
||||
determined by the latest-release task, will be used unless a specific version is
|
||||
provided.
|
||||
|
||||
Invoke this task like: task default REPO=trufflesecurity/trufflehog
|
||||
Invoke this task like:
|
||||
task default REPO=trufflesecurity/trufflehog
|
||||
|
||||
vars:
|
||||
CONFIG_DIR: "./config"
|
||||
|
||||
@@ -15,7 +15,8 @@ tasks:
|
||||
determined by the latest-release task, will be used unless a specific version is
|
||||
provided.
|
||||
|
||||
Invoke this task like: task default REPO=trufflesecurity/trufflehog
|
||||
Invoke this task like:
|
||||
task default REPO=trufflesecurity/trufflehog
|
||||
vars:
|
||||
BINARY: "{{.REPO | base}}"
|
||||
VERSION: '{{.VERSION | default "latest"}}'
|
||||
@@ -26,7 +27,6 @@ tasks:
|
||||
- task: embed-checksums
|
||||
vars:
|
||||
BINARY: "{{.BINARY}}"
|
||||
# use 'latest' as version unless VERSION is explicitly provided
|
||||
VERSION: "{{.VERSION }}"
|
||||
- task: gen
|
||||
vars:
|
||||
|
||||
@@ -28,3 +28,16 @@ checksums:
|
||||
hash: d6d639453938383a3399888bbe0a60449ae1a5aa196b9cd2187a1ef089b4beb6
|
||||
- filename: toolhive_0.7.2_windows_arm64.zip
|
||||
hash: d291feff936764db8a02868461431bd54a840ecac7a78b303e30956609c54631
|
||||
v0.8.0:
|
||||
- filename: toolhive_0.8.0_darwin_amd64.tar.gz
|
||||
hash: 0a1a7b6107645b71539c6d42569fedcae401b2360f035b4c7b08ffa4fa3e8934
|
||||
- filename: toolhive_0.8.0_darwin_arm64.tar.gz
|
||||
hash: e0754560741eeffd201df2ab88656e1d6cc1e7f20c0af0826db40a4d3c1a6b40
|
||||
- filename: toolhive_0.8.0_linux_amd64.tar.gz
|
||||
hash: 2f4216bdefdc37bda46ee5c896c54920d65e18013a0627855ce1a16eb2c44726
|
||||
- filename: toolhive_0.8.0_linux_arm64.tar.gz
|
||||
hash: 3b806cf7b857b0dce819610b4ef48709d35ee10a73865dfca4fcc791bff80416
|
||||
- filename: toolhive_0.8.0_windows_amd64.zip
|
||||
hash: 192bb1f0f9f257cad232e0148d81c3e31e644b888e61c22b46fa15b6b760547e
|
||||
- filename: toolhive_0.8.0_windows_arm64.zip
|
||||
hash: 313931641136da7479f02caf351c955c2d1d9bbc7204dff5f7f9d61ca1fd9242
|
||||
|
||||
@@ -415,7 +415,13 @@ EMBEDDED_CHECKSUMS="
|
||||
0.7.2:toolhive_0.7.2_linux_amd64.tar.gz:84a89a735f3c5d7eaa4fe0f4cba164eb2a04b83f2525c9709dc60dc86fc9dab1
|
||||
0.7.2:toolhive_0.7.2_linux_arm64.tar.gz:821fb80c672701b62bf3efcb4c744c685fbbde80845b6256d2116a4fe561ac21
|
||||
0.7.2:toolhive_0.7.2_windows_amd64.zip:d6d639453938383a3399888bbe0a60449ae1a5aa196b9cd2187a1ef089b4beb6
|
||||
0.7.2:toolhive_0.7.2_windows_arm64.zip:d291feff936764db8a02868461431bd54a840ecac7a78b303e30956609c54631"
|
||||
0.7.2:toolhive_0.7.2_windows_arm64.zip:d291feff936764db8a02868461431bd54a840ecac7a78b303e30956609c54631
|
||||
0.8.0:toolhive_0.8.0_darwin_amd64.tar.gz:0a1a7b6107645b71539c6d42569fedcae401b2360f035b4c7b08ffa4fa3e8934
|
||||
0.8.0:toolhive_0.8.0_darwin_arm64.tar.gz:e0754560741eeffd201df2ab88656e1d6cc1e7f20c0af0826db40a4d3c1a6b40
|
||||
0.8.0:toolhive_0.8.0_linux_amd64.tar.gz:2f4216bdefdc37bda46ee5c896c54920d65e18013a0627855ce1a16eb2c44726
|
||||
0.8.0:toolhive_0.8.0_linux_arm64.tar.gz:3b806cf7b857b0dce819610b4ef48709d35ee10a73865dfca4fcc791bff80416
|
||||
0.8.0:toolhive_0.8.0_windows_amd64.zip:192bb1f0f9f257cad232e0148d81c3e31e644b888e61c22b46fa15b6b760547e
|
||||
0.8.0:toolhive_0.8.0_windows_arm64.zip:313931641136da7479f02caf351c955c2d1d9bbc7204dff5f7f9d61ca1fd9242"
|
||||
|
||||
# Find embedded checksum for a given version and filename
|
||||
find_embedded_checksum() {
|
||||
|
||||
Reference in New Issue
Block a user