Skip to content

Commit b5e87ce

Browse files
Cache npm dependencies in snyk-security workflow
1 parent cfaf9b1 commit b5e87ce

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/release.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
- name: Checkout the repository
4242
uses: actions/checkout@v4
4343
with:
44-
submodules: recursive
4544
token: ${{ secrets.GH_CLI_TOKEN }}
4645
- name: Install Python
4746
uses: actions/setup-python@v5
@@ -95,8 +94,8 @@ jobs:
9594
9695
- name: Commit and push changes
9796
run: |
98-
git config --global user.email "[email protected]"
99-
git config --global user.name "codeflare-machine-account"
97+
git config --global user.email "${{ vars.CODEFLARE_MACHINE_EMAIL }}"
98+
git config --global user.name "${{ vars.CODEFLARE_MACHINE_NAME }}"
10099
git checkout -b $PR_BRANCH_NAME
101100
git commit -am "Update snyk-security.yaml"
102101
git push --set-upstream origin "$PR_BRANCH_NAME"

.github/workflows/snyk-security.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ jobs:
1010
steps:
1111
- name: Checkout code
1212
uses: actions/checkout@v4
13+
14+
- name: Setup Node.js to cache dependencies
15+
uses: actions/setup-node@v4
1316
with:
14-
submodules: recursive
17+
node-version: 20
18+
cache: 'npm'
1519

1620
- name: Install Snyk CLI
1721
run: npm install -g snyk

0 commit comments

Comments
 (0)