16
.github/workflows/make.yaml
vendored
16
.github/workflows/make.yaml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
submodules: recursive
|
||||
- uses: "actions/setup-go@v5"
|
||||
with:
|
||||
go-version: "1.25.5"
|
||||
go-version: "1.25.6"
|
||||
cache: true
|
||||
- uses: "actions/setup-node@v6"
|
||||
with:
|
||||
@@ -97,25 +97,25 @@ jobs:
|
||||
GRYPE_VERSION="v0.97.1"
|
||||
GRYPE_DIR="${HOME}/.local/bin"
|
||||
mkdir -p "${GRYPE_DIR}"
|
||||
|
||||
|
||||
# Download with retry logic
|
||||
MAX_RETRIES=3
|
||||
RETRY_DELAY=10
|
||||
|
||||
|
||||
for i in $(seq 1 $MAX_RETRIES); do
|
||||
echo "Attempt $i of $MAX_RETRIES: Installing grype ${GRYPE_VERSION}..."
|
||||
if curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b "${GRYPE_DIR}" "${GRYPE_VERSION}"; then
|
||||
echo "Grype installed successfully"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
if [ $i -lt $MAX_RETRIES ]; then
|
||||
echo "Installation failed, retrying in ${RETRY_DELAY} seconds..."
|
||||
sleep $RETRY_DELAY
|
||||
RETRY_DELAY=$((RETRY_DELAY * 2))
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
echo "Failed to install grype after $MAX_RETRIES attempts"
|
||||
exit 1
|
||||
- name: Add grype to PATH
|
||||
@@ -138,7 +138,7 @@ jobs:
|
||||
submodules: recursive
|
||||
- uses: "actions/setup-go@v5"
|
||||
with:
|
||||
go-version: "1.25.5"
|
||||
go-version: "1.25.6"
|
||||
cache: true
|
||||
- uses: "actions/setup-node@v6"
|
||||
with:
|
||||
@@ -160,7 +160,7 @@ jobs:
|
||||
submodules: recursive
|
||||
- uses: "actions/setup-go@v5"
|
||||
with:
|
||||
go-version: "1.25.5"
|
||||
go-version: "1.25.6"
|
||||
cache: true
|
||||
- uses: "actions/setup-node@v6"
|
||||
with:
|
||||
@@ -208,7 +208,7 @@ jobs:
|
||||
submodules: recursive
|
||||
- uses: "actions/setup-go@v5"
|
||||
with:
|
||||
go-version: "1.25.5"
|
||||
go-version: "1.25.6"
|
||||
cache: true
|
||||
- uses: "actions/setup-node@v6"
|
||||
with:
|
||||
|
||||
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@@ -28,7 +28,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.25.5"
|
||||
go-version: "1.25.6"
|
||||
cache: true
|
||||
|
||||
- name: Set up Node.js
|
||||
|
||||
Reference in New Issue
Block a user