Skip to content

Commit

Permalink
ci: Pin yarn lockfile for security & dependency scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFriel committed Sep 21, 2022
1 parent 5dbba0e commit 110dd76
Show file tree
Hide file tree
Showing 6 changed files with 3,091 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-build-sdks.yml
Expand Up @@ -92,7 +92,7 @@ jobs:
with:
node-version: ${{ fromJson(inputs.version-set).nodejs }}
cache: yarn
cache-dependency-path: sdk/nodejs/*.json
cache-dependency-path: sdk/nodejs/yarn.lock
- name: Install yarn
run: |
npm install -g yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-lint.yml
Expand Up @@ -73,7 +73,7 @@ jobs:
with:
node-version: ${{ fromJson(inputs.version-set).nodejs }}
cache: yarn
cache-dependency-path: sdk/nodejs/package.json
cache-dependency-path: sdk/nodejs/yarn.lock
- name: Install Python deps
run: |
python -m pip install --upgrade pip requests wheel urllib3 chardet
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/ci-run-test.yml
Expand Up @@ -157,7 +157,14 @@ jobs:
with:
node-version: ${{ fromJson(inputs.version-set).nodejs }}
cache: yarn
cache-dependency-path: sdk/nodejs/*.json
cache-dependency-path: sdk/nodejs/yarn.lock
- name: Uninstall pre-installed Pulumi (windows)
if: inputs.platform == 'windows-latest'
run: |
if command -v pulumi.exe; then
echo "Deleting pulumi"
rm -rf "$(command -v pulumi.exe)/../pulumi*"
fi
- name: Install yarn
run: |
npm install -g yarn
Expand Down
1 change: 1 addition & 0 deletions sdk/nodejs/.gitignore
Expand Up @@ -5,3 +5,4 @@
/custom_node/
/runtime/native/node_dev/
.nyc_output/
!yarn.lock
2 changes: 1 addition & 1 deletion sdk/nodejs/Makefile
Expand Up @@ -24,7 +24,7 @@ GO_TEST_FAST = $(PYTHON) ../../scripts/go-test.py $(GO_TEST_FAST_FLAGS)

ensure:: yarn.ensure node.ensure .ensure.phony
.ensure.phony: package.json
yarn install
yarn install --frozen-lockfile
@touch .ensure.phony

lint:: ensure
Expand Down

0 comments on commit 110dd76

Please sign in to comment.