mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
681db78ff8
A CI job has been added to ensure the `allow-scripts` config and the LavaMoat auto-generated policy is up-to-date. This will only run on release branches and the `master` branch, because it's too difficult a requirement to meet for each PR for contributors on macOS, due to differences in the dependency graph caused by optional dependencies. The `allow-scripts` and LavaMoat policy have both been updated using `yarn allow-scripts auto` and `yarn lavamoat:auto`.
16 lines
206 B
Bash
Executable File
16 lines
206 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -u
|
|
set -o pipefail
|
|
|
|
yarn lavamoat:auto
|
|
|
|
if git diff-index --quiet HEAD
|
|
then
|
|
echo "LavaMoat policy is up-to-date"
|
|
else
|
|
echo "LavaMoat policy requires updates"
|
|
exit 1
|
|
fi
|