Skip to content

Commit e221499

Browse files
committed
fix
1 parent 974c51d commit e221499

File tree

1 file changed

+27
-25
lines changed

1 file changed

+27
-25
lines changed

.github/workflows/dependency-analysis.yml

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ on:
99
required: false
1010
type: string
1111
default: "."
12-
minimum_package_age_hours:
13-
description: 'Allowed minimum package age'
14-
required: false
15-
type: number
16-
default: 48
12+
# minimum_package_age_hours:
13+
# description: 'Allowed minimum package age'
14+
# required: false
15+
# type: number
16+
# default: 48
1717

1818
permissions:
1919
contents: read
2020

21+
env:
22+
minimum_package_age_hours: 168 # 7 days
23+
2124
jobs:
2225
dependency-scan:
2326
name: Run dependency analysis
@@ -33,7 +36,6 @@ jobs:
3336
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
3437
with:
3538
version: 10
36-
cache: true
3739

3840
- name: Setup Node
3941
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
@@ -48,29 +50,29 @@ jobs:
4850
# SAFE_CHAIN_VERSION: "1.2.4"
4951
run: |
5052
curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.sh | sh -s -- --ci
51-
#echo "[INFO] - Set min age to ${{ inputs.minimum_package_age_hours }}"
52-
#export SAFE_CHAIN_MINIMUM_PACKAGE_AGE_HOURS="${{ inputs.minimum_package_age_hours }}"
53+
echo "[INFO] - Set min age to ${{ env.minimum_package_age_hours }}"
54+
export SAFE_CHAIN_MINIMUM_PACKAGE_AGE_HOURS="${{ env.minimum_package_age_hours }}"
5355
shell: bash
5456

5557
- name: Check dependencies
56-
run: |
57-
echo "[INFO] - Set min age to ${{ inputs.minimum_package_age_hours || 48 }}"
58-
59-
echo "[INFO] - Install yarn managers"
60-
npm install -g yarn
61-
62-
#echo "[INFO] - Current npm version: $(npm -v)"
63-
#npm install -g npm@latest
64-
#echo "[INFO] - Updated npm version: $(npm -v)"
58+
run: |
59+
#echo "[INFO] - Install yarn managers"
60+
#npm install -g yarn
61+
62+
# echo "[INFO] - Current npm version: $(npm -v)"
63+
# npm install -g npm@latest
64+
# echo "[INFO] - Updated npm version: $(npm -v)"
65+
66+
# echo "[DEBUG] - node"
67+
# node --version
68+
# echo "[DEBUG] - npm"
69+
# npm --version
70+
# echo "[DEBUG] - yarn"
71+
# yarn --version
72+
# echo "[DEBUG] - scripts"
73+
# ls -laR /home/runner/.safe-chain
6574

66-
echo "[DEBUG] - node"
67-
node --version
68-
echo "[DEBUG] - npm"
69-
npm --version
70-
echo "[DEBUG] - yarn"
71-
yarn --version
72-
#echo "[DEBUG] - scripts"
73-
ls -laR /home/runner/.safe-chain
75+
find . -type f -name "package.json" -printf '%h\n'
7476

7577
MANIFESTS_LOC=$(find . -type f -name "package.json" -printf '%h\n')
7678
for MANIFEST_LOC in "${MANIFESTS_LOC[@]}"; do

0 commit comments

Comments
 (0)