mirror of
https://github.com/traefik/traefik.git
synced 2025-12-03 16:41:19 +01:00
Protect CI against supply chain attack on nodejs
This commit is contained in:
parent
042feacf3e
commit
e15c11961f
10
.github/workflows/template-webui.yaml
vendored
10
.github/workflows/template-webui.yaml
vendored
@ -1,6 +1,8 @@
|
|||||||
name: Build Web UI
|
name: Build Web UI
|
||||||
on:
|
on:
|
||||||
workflow_call: {}
|
workflow_call: {}
|
||||||
|
env:
|
||||||
|
SAFE_CHAIN_MINIMUM_PACKAGE_AGE_HOURS: 360 # 15 days
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build-webui:
|
build-webui:
|
||||||
@ -19,10 +21,16 @@ jobs:
|
|||||||
cache: yarn
|
cache: yarn
|
||||||
cache-dependency-path: webui/yarn.lock
|
cache-dependency-path: webui/yarn.lock
|
||||||
|
|
||||||
|
- name: Setup safe-chain
|
||||||
|
working-directory: ./webui
|
||||||
|
run: |
|
||||||
|
npm i -g @aikidosec/safe-chain
|
||||||
|
safe-chain setup-ci
|
||||||
|
|
||||||
- name: Build webui
|
- name: Build webui
|
||||||
working-directory: ./webui
|
working-directory: ./webui
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install --ignore-scripts
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
- name: Package webui
|
- name: Package webui
|
||||||
|
|||||||
7
.github/workflows/test-unit.yaml
vendored
7
.github/workflows/test-unit.yaml
vendored
@ -80,7 +80,12 @@ jobs:
|
|||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
cache-dependency-path: webui/yarn.lock
|
cache-dependency-path: webui/yarn.lock
|
||||||
|
|
||||||
|
- name: Setup safe-chain
|
||||||
|
run: |
|
||||||
|
npm i -g @aikidosec/safe-chain
|
||||||
|
safe-chain setup-ci
|
||||||
|
|
||||||
- name: UI unit tests
|
- name: UI unit tests
|
||||||
run: |
|
run: |
|
||||||
yarn --cwd webui install
|
yarn --cwd webui install --ignore-scripts
|
||||||
yarn --cwd webui test:unit:ci
|
yarn --cwd webui test:unit:ci
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user