Skip to content

Commit 1dd60e0

Browse files
denis-yuenclaude
andauthored
Harden CI installs and bump checkout/setup-node
Use npm ci --ignore-scripts, pip --only-binary :all:, pin aws-sam-cli, and bump actions/checkout and actions/setup-node. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 7534f45 commit 1dd60e0

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎.github/workflows/maven.yml‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
linterWithESLint:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v6
1212
- name: Use Node.js
13-
uses: actions/setup-node@v1
13+
uses: actions/setup-node@v7
1414
with:
1515
node-version: 12.x
16-
- run: npm install
16+
- run: npm ci --ignore-scripts
1717
- run: npm run lint
1818
testWithSAMCLI:
1919
runs-on: ubuntu-latest
@@ -25,8 +25,7 @@ jobs:
2525
python-version: "3.12"
2626
- name: Install dependencies
2727
run: |
28-
python -m pip install --upgrade pip
29-
pip install aws-sam-cli
28+
pip install --only-binary :all: aws-sam-cli==1.167.0
3029
- name: Set up JDK
3130
uses: actions/setup-java@v5
3231
with:
@@ -61,8 +60,8 @@ jobs:
6160
- name: Test CWL packing with pytest
6261
working-directory: ./cwlpack
6362
run: |
64-
pip install -r tests/requirements.txt --user
65-
pip install -r cwl_pack_function/requirements.txt --user
63+
pip install --only-binary :all: -r tests/requirements.txt --user
64+
pip install --only-binary :all: -r cwl_pack_function/requirements.txt --user
6665
python -m pytest tests/unit -v
6766
pylint cwl_pack_function
6867
pylint tests

0 commit comments

Comments
 (0)