-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates on github-actions
- Loading branch information
AlexRogalskiy
committed
Aug 11, 2021
1 parent
d178460
commit 3345ab4
Showing
125 changed files
with
38,402 additions
and
159 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
/.dependabot | ||
/.github | ||
/.husky | ||
/.idea | ||
/node_modules | ||
.dependabot | ||
.github | ||
.husky | ||
.idea | ||
reports | ||
scripts | ||
images | ||
k8s | ||
traffic | ||
node_modules | ||
tilt_modules | ||
|
||
npm-debug.log | ||
.gitignore | ||
|
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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
##################################################### | ||
###### General settings | ||
##################################################### | ||
APP_HOST_NAME=scala-patterns | ||
APP_CONTAINER_NAME=scala-patterns | ||
APP_IMAGE_NAME=scala-patterns | ||
IMAGE_SOURCE=node | ||
IMAGE_TAG=12-buster | ||
|
||
APP_NAME=scala-patterns | ||
APP_HOST_NAME=${APP_NAME} | ||
APP_CONTAINER_NAME=${APP_NAME} | ||
APP_IMAGE_NAME=${APP_NAME} | ||
|
||
APP_DATA_DIR=./data | ||
|
||
TILT_WATCH_WINDOWS_BUFFER_SIZE=10265536 |
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,39 @@ | ||
name: Docker build and container scan | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Docker build | ||
run: | | ||
docker build . --file Dockerfile --tag containerscanner:${{ github.sha }} | ||
- name: Anchore scan | ||
uses: anchore/scan-action@1.0.6 | ||
with: | ||
image-reference: containerscanner:${{ github.sha }} | ||
dockerfile-path: Dockerfile | ||
include-app-packages: true | ||
fail-build: true # no idea why it doesn't work | ||
|
||
- name: Show Anchore results | ||
run: for j in `ls ./anchore-reports/*.json`; do echo "---- ${j} ----"; cat ${j}; echo; done | ||
if: ${{ always() }} | ||
|
||
- name: Upload Anchore results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: anchore-reports | ||
path: ./anchore-reports/ | ||
if: ${{ always() }} | ||
|
||
- name: Fail on any vulnerability | ||
run: jq -e '.vulnerabilities | any( . ) | not' anchore-reports/vulnerabilities.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 |
---|---|---|
|
@@ -14,6 +14,7 @@ lerna-debug.log* | |
.npm | ||
.eslintcache | ||
lunr-index.json | ||
build.txt | ||
|
||
# Package files | ||
*.jar | ||
|
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run validate:commit |
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 |
---|---|---|
|
@@ -12,3 +12,5 @@ node_modules | |
flow-typed | ||
coverage | ||
dist | ||
helm | ||
tilt_modules |
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,5 @@ | ||
[FORMAT] | ||
indent-string=\t | ||
|
||
[MESSAGES CONTROL] | ||
disable=C0103,C0111,C0301,R0902,R0903,R0904,R1723,W0703 |
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 |
---|---|---|
|
@@ -5,5 +5,8 @@ | |
docs | ||
images | ||
node_modules | ||
tilt_modules | ||
k8s | ||
helm | ||
reports | ||
scripts |
Empty file.
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
Oops, something went wrong.