Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
35cb5a8b
Commit
35cb5a8b
authored
Dec 14, 2023
by
Will Cory
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔒
feat: Improve security of CI by not running scripts
parent
631b6f48
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
17 deletions
+19
-17
config.yml
.circleci/config.yml
+12
-12
action.yml
.github/actions/setup/action.yml
+2
-2
Makefile
Makefile
+1
-1
Dockerfile.packages
ops/docker/Dockerfile.packages
+1
-1
package.json
package.json
+2
-0
Dockerfile
ufm-test-services/metamask/Dockerfile
+1
-1
No files found.
.circleci/config.yml
View file @
35cb5a8b
...
...
@@ -155,7 +155,7 @@ jobs:
-
"
node_modules"
-
run
:
name
:
Install dependencies
command
:
pnpm install
--frozen-lockfile --
offline
command
:
pnpm install
:ci:
offline
-
run
:
name
:
print forge version
command
:
forge --version
...
...
@@ -367,7 +367,7 @@ jobs:
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install
--frozen-lockfile --prefer-offline
command
:
pnpm install
:ci
-
run
:
name
:
print forge version
command
:
forge --version
...
...
@@ -399,7 +399,7 @@ jobs:
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install
--frozen-lockfile --prefer-offline
command
:
pnpm install
:ci
# Note: this step needs to come first because one of the later steps modifies the cache & forces a contracts rebuild
-
run
:
name
:
semver lock
...
...
@@ -493,7 +493,7 @@ jobs:
-
attach_workspace
:
{
at
:
"
."
}
-
run
:
name
:
Install dependencies
command
:
pnpm install
--frozen-lockfile --prefer-offline
command
:
pnpm install
:ci
-
check-changed
:
patterns
:
contracts-bedrock
-
run
:
...
...
@@ -539,7 +539,7 @@ jobs:
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install
--frozen-lockfile --prefer-offline
command
:
pnpm install
:ci
-
run
:
name
:
Lint
command
:
pnpm lint && git diff --exit-code
...
...
@@ -568,7 +568,7 @@ jobs:
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install
--frozen-lockfile --prefer-offline
command
:
pnpm install
:ci
-
run
:
name
:
Check generated and build
command
:
pnpm generate:check
...
...
@@ -590,7 +590,7 @@ jobs:
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install
--frozen-lockfile --prefer-offline
command
:
pnpm install
:ci
-
run
:
name
:
anvil-l1
background
:
true
...
...
@@ -654,7 +654,7 @@ jobs:
npm i pnpm --global
-
run
:
name
:
pnpm dev deps
command
:
pnpm install
--frozen-lockfile --prefer-offline
command
:
pnpm install
:ci
-
run
:
name
:
specs toc
command
:
pnpm lint:specs:toc && git diff --exit-code ./specs
...
...
@@ -674,7 +674,7 @@ jobs:
-
run
:
name
:
Install node_modules
command
:
|
pnpm install
--frozen-lockfile --prefer-offline
pnpm install
:ci
-
run
:
name
:
Lint check
command
:
|
...
...
@@ -859,7 +859,7 @@ jobs:
name
:
run tests
command
:
|
mkdir -p /testlogs
export OP_E2E_CANNON_ENABLED="<<parameters.cannon_enabled>>"
# Note: We don't use circle CI test splits because we need to split by test name, not by package. There is an additional
# constraint that gotestsum does not currently (nor likely will) accept files from different pacakges when building.
...
...
@@ -951,7 +951,7 @@ jobs:
working_directory
:
indexer
-
run
:
name
:
Install node_modules
command
:
pnpm install
--frozen-lockfile --prefer-offline
command
:
pnpm install
:ci
working_directory
:
indexer/api-ts
-
run
:
name
:
Install tygo
...
...
@@ -1068,7 +1068,7 @@ jobs:
-
run
:
name
:
Install and build
command
:
|
pnpm install
--frozen-lockfile --prefer-offline
&& pnpm build
pnpm install
:ci
&& pnpm build
-
attach_workspace
:
at
:
/tmp/workspace
-
run
:
...
...
.github/actions/setup/action.yml
View file @
35cb5a8b
...
...
@@ -19,10 +19,10 @@ runs:
-
name
:
Install node dependencies
shell
:
bash
run
:
pnpm install
--frozen-lockfile
run
:
pnpm install
:ci
-
name
:
Derive appropriate SHAs for base and head for `nx affected` commands
uses
:
nrwl/nx-set-shas@v3
with
:
with
:
main-branch-name
:
"
develop"
-
run
:
|
echo "nx using following shas:"
...
...
Makefile
View file @
35cb5a8b
...
...
@@ -20,7 +20,7 @@ build-ts: submodules
if
[
-n
"
$$
NVM_DIR"
]
;
then
\
.
$$
NVM_DIR/nvm.sh
&&
nvm use
;
\
fi
pnpm
install
pnpm
install
:ci
pnpm build
.PHONY
:
build-ts
...
...
ops/docker/Dockerfile.packages
View file @
35cb5a8b
...
...
@@ -73,7 +73,7 @@ WORKDIR /opt/optimism
COPY --from=manifests /tmp/manifests ./
COPY *.json ./
RUN pnpm install
--frozen-lockfile
RUN pnpm install
:ci
COPY ./packages ./packages
...
...
package.json
View file @
35cb5a8b
...
...
@@ -14,6 +14,8 @@
"build"
:
"npx nx run-many --target=build"
,
"test"
:
"npx nx run-many --target=test"
,
"issues"
:
"./ops/scripts/todo-checker.sh"
,
"install:ci"
:
"pnpm install --ignore-scripts --frozen-lockfile && pnpm postinstall && pnpm rebuild nx"
,
"install:ci:offline"
:
"pnpm install --ignore-scripts --offline --frozen-lockfile && pnpm postinstall && pnpm rebuild nx"
,
"lint"
:
"npx nx run-many --target=lint"
,
"test:coverage"
:
"npx nx run-many --target=test:coverage"
,
"lint:ts:check"
:
"npx nx run-many --target=lint:ts:check"
,
...
...
ufm-test-services/metamask/Dockerfile
View file @
35cb5a8b
...
...
@@ -17,7 +17,7 @@ RUN if [ "$METAMASK_PLAYWRIGHT_RUN_HEADLESS" != "false" ]; then \
# Copy necessary files and directories
COPY
package.json pnpm-lock.yaml pnpm-workspace.yaml /app/
RUN
pnpm
install
--frozen-lockfile
RUN
pnpm
install
--frozen-lockfile
--ignore-scripts
COPY
tests /app/tests/
COPY
playwright.config.ts /app/
COPY
start.sh /app/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment