-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check Docker images for vulnerabilities
- Loading branch information
Showing
9 changed files
with
69 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Docker Checks | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'staking-points/**' | ||
- 'token-prices/**' | ||
push: | ||
paths: | ||
- 'staking-points/**' | ||
- 'token-prices/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
docker-checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: docker build --tag ${{ github.repository }}:${{ github.sha }} ${{ matrix.context }} | ||
- uses: aquasecurity/[email protected] | ||
with: | ||
exit-code: 1 | ||
ignore-unfixed: true | ||
image-ref: ${{ github.repository }}:${{ github.sha }} | ||
severity: HIGH,CRITICAL | ||
skip-dirs: /root/.npm | ||
strategy: | ||
matrix: | ||
context: | ||
- staking-points | ||
- token-prices/api | ||
- token-prices/cron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ FROM node:20.18.3-alpine | |
|
||
ENV NODE_ENV=production | ||
|
||
# Fix the cross-spawn vulnerability in the preinstalled npm version | ||
RUN npm i --global [email protected] | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ FROM node:20.18.3-alpine | |
|
||
ENV NODE_ENV=production | ||
|
||
# Fix the cross-spawn vulnerability in the preinstalled npm version | ||
RUN npm i --global [email protected] | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ FROM node:20.18.3-alpine | |
|
||
ENV NODE_ENV=production | ||
|
||
# Fix the cross-spawn vulnerability in the preinstalled npm version | ||
RUN npm i --global [email protected] | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Notes | ||
|
||
```js | ||
// const other = [ | ||
// 'bedrock-btc', | ||
// 'ether-fi-staked-btc', | ||
// 'lombard-staked-btc' | ||
// ] | ||
// const notfound = ['enzoBTC', 'ibtc', 'obtc', 'ubtc'] | ||
``` |