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