Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump aquasecurity/trivy-action from 0.18.0 to 0.24.0 #15

Open
wants to merge 394 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
394 commits
Select commit Hold shift + click to select a range
ce8091e
test push
asteel-gsa Jun 23, 2023
3ca3beb
replace checkout
asteel-gsa Jun 23, 2023
856ffca
remove --all-tags
asteel-gsa Jun 23, 2023
526697e
test tag
asteel-gsa Jun 23, 2023
e5f8859
test push
asteel-gsa Jun 23, 2023
36c30cf
remove env
asteel-gsa Jun 23, 2023
a5ecd49
remove platforms
asteel-gsa Jun 23, 2023
b1f20fc
testing
asteel-gsa Jun 23, 2023
98579fd
test build and push
asteel-gsa Jun 23, 2023
cbf36c2
test
asteel-gsa Jun 23, 2023
8fdaaa2
testing
asteel-gsa Jun 23, 2023
361d0c9
test
asteel-gsa Jun 23, 2023
5d302b0
testing
asteel-gsa Jun 23, 2023
57fcf92
test
asteel-gsa Jun 23, 2023
697438e
test
asteel-gsa Jun 23, 2023
050c714
test
asteel-gsa Jun 23, 2023
1c94bc1
change tag
asteel-gsa Jun 23, 2023
d6ee7f0
test using ghcr image
asteel-gsa Jun 23, 2023
70a9795
add type=gha
asteel-gsa Jun 23, 2023
35359e4
code cleanup
asteel-gsa Jun 23, 2023
d7e4914
Merge branch 'main' of https://github.com/asteel-gsa/FAC
asteel-gsa Jun 23, 2023
727fd99
add schedules to test weekend runs
asteel-gsa Jun 23, 2023
8cf905d
fix package name
asteel-gsa Jun 23, 2023
c5807dd
configure autodeploy pr
asteel-gsa Jun 23, 2023
da2ee85
Update docker build context
asteel-gsa Jun 23, 2023
cfeae16
update image name
asteel-gsa Jun 23, 2023
0d6ad4e
remove extra ghcr
asteel-gsa Jun 23, 2023
cd893e5
remove builder
asteel-gsa Jun 23, 2023
c5b3807
remove --cache-from
asteel-gsa Jun 23, 2023
174c29a
modify tag logic
asteel-gsa Jun 23, 2023
800539b
update dockerfile
asteel-gsa Jun 23, 2023
1d9ba1c
fix docker push?
asteel-gsa Jun 23, 2023
a7ee588
change tag logic
asteel-gsa Jun 23, 2023
7e523c2
revert
asteel-gsa Jun 23, 2023
cb65322
Scheduling Build
asteel-gsa Jun 23, 2023
70e3783
remove date tag
asteel-gsa Jun 23, 2023
3dd8154
rename test step
asteel-gsa Jun 23, 2023
b87fcef
rollback changes
asteel-gsa Jun 23, 2023
cdbe7d3
rollback
asteel-gsa Jun 23, 2023
90fa01f
add schedule back to test and lint
asteel-gsa Jun 23, 2023
aeec49a
naming scheme changes
asteel-gsa Jun 23, 2023
38e7939
modify schedule
asteel-gsa Jun 24, 2023
7d380d3
modify scheduling
asteel-gsa Jun 24, 2023
77f026e
add `npm audit fix`
asteel-gsa Jun 24, 2023
dee9fa6
Merge pull request #1 from asteel-gsa/main
asteel-gsa Jun 24, 2023
9237c57
remove `npm audit fix`
asteel-gsa Jun 26, 2023
375e916
update name
asteel-gsa Jun 27, 2023
2d9a6d7
fix
asteel-gsa Jun 27, 2023
c399c16
Merge remote-tracking branch 'upstream/main'
asteel-gsa Jul 6, 2023
dc76afe
testing docker content trust
asteel-gsa Jul 6, 2023
2a24162
testing dct signing
asteel-gsa Jul 6, 2023
300c0c3
update signer name
asteel-gsa Jul 6, 2023
7ddfe57
auth w/ ghcr first
asteel-gsa Jul 6, 2023
d41a421
fix spacing
asteel-gsa Jul 6, 2023
a966054
test trivy
asteel-gsa Jul 6, 2023
ae295e6
modify trivy scanning
asteel-gsa Jul 6, 2023
1263ecd
publish scan results
asteel-gsa Jul 6, 2023
c8e17b4
remove quotes
asteel-gsa Jul 6, 2023
df8ad6e
update trivy
asteel-gsa Jul 6, 2023
df09cd3
update text
asteel-gsa Jul 6, 2023
d502b78
fix matrix
asteel-gsa Jul 6, 2023
11c7e2b
Testing scanning
asteel-gsa Jul 6, 2023
6b75d90
change format
asteel-gsa Jul 6, 2023
1fa620f
changes
asteel-gsa Jul 6, 2023
7dba712
testing trivy
asteel-gsa Jul 6, 2023
9a6c4fe
update scanning
asteel-gsa Jul 6, 2023
ed0609f
remove clamav for testing
asteel-gsa Jul 6, 2023
9c16f3c
remove scan
asteel-gsa Jul 6, 2023
480a1f4
testing trivy
asteel-gsa Jul 6, 2023
517382e
add env for on push
asteel-gsa Jul 6, 2023
e26c350
testing exit code
asteel-gsa Jul 6, 2023
c659e06
fixes
asteel-gsa Jul 6, 2023
5138116
update scanning
asteel-gsa Jul 6, 2023
dccf743
update scanning
asteel-gsa Jul 6, 2023
2732968
testing
asteel-gsa Jul 7, 2023
bed76df
fixes
asteel-gsa Jul 7, 2023
68b61eb
fixes
asteel-gsa Jul 7, 2023
4a96618
testing
asteel-gsa Jul 7, 2023
3a57922
updates
asteel-gsa Jul 7, 2023
8a75faa
testing with dct key
asteel-gsa Jul 7, 2023
23ed6cd
testing
asteel-gsa Jul 7, 2023
378f881
testing
asteel-gsa Jul 7, 2023
c5b6d8e
testing
asteel-gsa Jul 7, 2023
e791837
modify signer logic
asteel-gsa Jul 7, 2023
b7ceccf
make public.pem
asteel-gsa Jul 7, 2023
286b610
modify signer logic
asteel-gsa Jul 7, 2023
967b0ab
testing
asteel-gsa Jul 7, 2023
30a6a8c
testing
asteel-gsa Jul 7, 2023
d48fe7b
test
asteel-gsa Jul 7, 2023
1f87abf
testing dct
asteel-gsa Jul 7, 2023
df52adb
add pass to stdin
asteel-gsa Jul 7, 2023
276b883
testing pass
asteel-gsa Jul 7, 2023
49c1bc5
remove auth_sock
asteel-gsa Jul 7, 2023
2215203
start ssh agent
asteel-gsa Jul 7, 2023
ab69e63
testing auth_sock
asteel-gsa Jul 7, 2023
06f3dbf
test
asteel-gsa Jul 7, 2023
faa46f0
add signing
asteel-gsa Jul 7, 2023
88b959a
rollback
asteel-gsa Jul 7, 2023
0785161
test
asteel-gsa Jul 7, 2023
69bfb11
testing
asteel-gsa Jul 7, 2023
9267663
add stdin
asteel-gsa Jul 7, 2023
21ed7bc
test
asteel-gsa Jul 7, 2023
2c84638
test
asteel-gsa Jul 7, 2023
0459fb4
test
asteel-gsa Jul 7, 2023
8b66328
test
asteel-gsa Jul 7, 2023
7c20a82
testing
asteel-gsa Jul 7, 2023
2c5b793
add quotes
asteel-gsa Jul 7, 2023
6ffb91b
testing
asteel-gsa Jul 7, 2023
dc48cc8
test
asteel-gsa Jul 7, 2023
3e726bd
Merge remote-tracking branch 'upstream/main'
asteel-gsa Jul 7, 2023
140fee4
test
asteel-gsa Jul 7, 2023
7c6f353
test
asteel-gsa Jul 7, 2023
18e4cbc
testing
asteel-gsa Jul 7, 2023
6a7763c
testing
asteel-gsa Jul 7, 2023
1f90005
test
asteel-gsa Jul 7, 2023
6e92520
test
asteel-gsa Jul 7, 2023
df60c09
test
asteel-gsa Jul 7, 2023
c23fb29
fix?
asteel-gsa Jul 7, 2023
eb7ae71
fix?
asteel-gsa Jul 7, 2023
7896ee7
pass
asteel-gsa Jul 7, 2023
8645aff
testing DCT
asteel-gsa Jul 7, 2023
30f1965
test trust
asteel-gsa Jul 7, 2023
5bdf493
test
asteel-gsa Jul 7, 2023
f71822e
trust sign
asteel-gsa Jul 7, 2023
f585b2c
test
asteel-gsa Jul 7, 2023
a2dd783
test
asteel-gsa Jul 7, 2023
1c24761
test
asteel-gsa Jul 7, 2023
0794117
test
asteel-gsa Jul 7, 2023
432b568
test
asteel-gsa Jul 7, 2023
cd2d57c
test
asteel-gsa Jul 7, 2023
801b576
test
asteel-gsa Jul 7, 2023
184e9fe
test
asteel-gsa Jul 7, 2023
8ddf688
test
asteel-gsa Jul 7, 2023
95a8842
test
asteel-gsa Jul 7, 2023
7c036ef
test
asteel-gsa Jul 7, 2023
fccf649
test
asteel-gsa Jul 7, 2023
107a15c
test
asteel-gsa Jul 7, 2023
0a45d5f
send pass
asteel-gsa Jul 7, 2023
0b09963
testing?
asteel-gsa Jul 7, 2023
e72be88
modify commands
asteel-gsa Jul 7, 2023
66ae866
test
asteel-gsa Jul 7, 2023
ddeb325
add pass
asteel-gsa Jul 7, 2023
12e2dd6
fixes
asteel-gsa Jul 7, 2023
cce8b08
test?
asteel-gsa Jul 7, 2023
5ded3dd
test
asteel-gsa Jul 7, 2023
8ea5e6b
move commands
asteel-gsa Jul 7, 2023
1a60501
test
asteel-gsa Jul 7, 2023
723ba57
test
asteel-gsa Jul 7, 2023
f2b9af9
test
asteel-gsa Jul 7, 2023
20125a3
test
asteel-gsa Jul 7, 2023
d8e6d47
test
asteel-gsa Jul 7, 2023
ab31369
test
asteel-gsa Jul 7, 2023
cbb04ff
test
asteel-gsa Jul 7, 2023
bae8f96
test
asteel-gsa Jul 7, 2023
a78b8d0
test
asteel-gsa Jul 7, 2023
6116095
test
asteel-gsa Jul 7, 2023
f160f9a
test
asteel-gsa Jul 7, 2023
e243e30
test signer
asteel-gsa Jul 7, 2023
b6f4e6c
test
asteel-gsa Jul 7, 2023
e8447e5
test
asteel-gsa Jul 7, 2023
acc29c5
test
asteel-gsa Jul 7, 2023
f8e9ef8
try heredoc
asteel-gsa Jul 7, 2023
e8f3c0c
test
asteel-gsa Jul 7, 2023
b859e76
test
asteel-gsa Jul 7, 2023
66000a4
test
asteel-gsa Jul 7, 2023
d75fb44
test
asteel-gsa Jul 7, 2023
1f7733c
test
asteel-gsa Jul 7, 2023
2a2a127
test
asteel-gsa Jul 7, 2023
e3d0fe7
test
asteel-gsa Jul 7, 2023
b33d3f7
test
asteel-gsa Jul 7, 2023
87fb290
test
asteel-gsa Jul 7, 2023
6a4068d
test
asteel-gsa Jul 7, 2023
42ad1a2
test
asteel-gsa Jul 7, 2023
7d5128f
use gh token
asteel-gsa Jul 10, 2023
97e4270
testing
asteel-gsa Jul 10, 2023
eaf4c6c
test
asteel-gsa Jul 10, 2023
81b4b11
test
asteel-gsa Jul 10, 2023
824df78
test
asteel-gsa Jul 10, 2023
7378eed
test
asteel-gsa Jul 10, 2023
c6b82ea
test
asteel-gsa Jul 10, 2023
ad2c54c
test
asteel-gsa Jul 10, 2023
2c81565
test
asteel-gsa Jul 10, 2023
790db36
test
asteel-gsa Jul 10, 2023
940d90a
testing?
asteel-gsa Jul 10, 2023
3cbc432
test
asteel-gsa Jul 10, 2023
8555452
add repeat pass
asteel-gsa Jul 10, 2023
b90ccc9
add repo pass
asteel-gsa Jul 10, 2023
4a16d8e
test
asteel-gsa Jul 10, 2023
e025e4a
enable password
asteel-gsa Jul 10, 2023
dcb2c67
add repo pass
asteel-gsa Jul 10, 2023
4bebe2c
test
asteel-gsa Jul 10, 2023
7bd82e5
test
asteel-gsa Jul 10, 2023
62468a6
test
asteel-gsa Jul 10, 2023
35db203
test
asteel-gsa Jul 10, 2023
d477cae
test
asteel-gsa Jul 10, 2023
dc2fec0
testing
asteel-gsa Jul 10, 2023
b593fda
test
asteel-gsa Jul 10, 2023
820ca38
test
asteel-gsa Jul 10, 2023
50ab0b4
test
asteel-gsa Jul 10, 2023
792401f
test
asteel-gsa Jul 10, 2023
dcf9e5d
test
asteel-gsa Jul 10, 2023
c77e2ec
testing push to ghcr
asteel-gsa Jul 10, 2023
d0490f8
testing push to ghcr
asteel-gsa Jul 10, 2023
266f012
remove tagging
asteel-gsa Jul 10, 2023
024a541
testing
asteel-gsa Jul 10, 2023
1abb38f
change signer name
asteel-gsa Jul 10, 2023
53b084c
test
asteel-gsa Jul 10, 2023
1452f82
test
asteel-gsa Jul 10, 2023
d71a0f9
test
asteel-gsa Jul 10, 2023
d705779
test
asteel-gsa Jul 10, 2023
93463c3
test
asteel-gsa Jul 10, 2023
6d07dc5
test
asteel-gsa Jul 10, 2023
8234604
test
asteel-gsa Jul 10, 2023
53de4d9
test
asteel-gsa Jul 10, 2023
9caae0a
test
asteel-gsa Jul 10, 2023
824c538
add shell
asteel-gsa Jul 10, 2023
4423afd
test
asteel-gsa Jul 10, 2023
857a8d2
test
asteel-gsa Jul 10, 2023
97426ee
test
asteel-gsa Jul 10, 2023
53f340b
test
asteel-gsa Jul 10, 2023
9b1856d
test
asteel-gsa Jul 10, 2023
229e500
Merge remote-tracking branch 'upstream/main'
asteel-gsa Jul 10, 2023
944a676
Merge remote-tracking branch 'upstream/main'
asteel-gsa Jul 11, 2023
ac03a2f
Refactoring
asteel-gsa Jul 11, 2023
c6972a2
refactor
asteel-gsa Jul 11, 2023
6bd28d0
refactor terraform and remove fetch versions
asteel-gsa Jul 11, 2023
77dbf1b
Merge branch 'test'
asteel-gsa Jul 11, 2023
64d1db1
Merge remote-tracking branch 'upstream/main'
asteel-gsa Jul 25, 2023
304b1a7
test
asteel-gsa Jul 25, 2023
d0205b9
update trivy version and add timeout
asteel-gsa Jul 25, 2023
774d04e
fix
asteel-gsa Jul 25, 2023
d5cbb87
Merge remote-tracking branch 'upstream/main'
asteel-gsa Aug 7, 2023
cd1fc83
Merge remote-tracking branch 'upstream/main'
asteel-gsa Aug 16, 2023
e6cab6a
disable schedules
asteel-gsa Aug 16, 2023
ca6c43a
Merge remote-tracking branch 'upstream/main'
asteel-gsa Aug 16, 2023
fec85c1
Merge branch 'GSA-TTS:main' into main
asteel-gsa Sep 25, 2023
dc39608
Merge branch 'GSA-TTS:main' into main
asteel-gsa Sep 28, 2023
9aecc77
Merge branch 'main' of https://github.com/asteel-gsa/FAC
asteel-gsa Sep 28, 2023
5f5d51c
testing actor
asteel-gsa Sep 28, 2023
9c7fcd9
negate actor
asteel-gsa Sep 28, 2023
683c410
testing actor
asteel-gsa Sep 28, 2023
532d12f
testing actor again
asteel-gsa Sep 28, 2023
2ca9b51
Update daily-regression-tests.yml
asteel-gsa Nov 13, 2023
0e9e649
Merge remote-tracking branch 'upstream/main'
asteel-gsa Mar 14, 2024
3275a80
Merge branch 'main' of https://github.com/asteel-gsa/FAC
asteel-gsa Mar 14, 2024
27089b1
test matrix
asteel-gsa Mar 14, 2024
f3dc22b
add dispatch
asteel-gsa Mar 14, 2024
40304c4
echo fix
asteel-gsa Mar 14, 2024
a68c448
Testing
asteel-gsa Mar 14, 2024
b8cc939
Bump aquasecurity/trivy-action from 0.18.0 to 0.24.0
dependabot[bot] Jul 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/create-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
name: Create Pull Request To Staging
on:
workflow_call:
workflow_dispatch:

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
check-commit:
runs-on: ubuntu-latest
name: Check For a Commit
outputs:
should_run: ${{ steps.should_run.outputs.should_run }}
steps:
- uses: actions/checkout@v3
- name: Print Latest Commit
run: echo ${{ github.sha }}

- name: Check if There Has Been A Commit
id: should_run
continue-on-error: false
run: |
sha=$(git rev-list --after="24 hours" ${{ github.sha }})
if test -z $sha
then
echo "should_run=false" >> $GITHUB_OUTPUT
else
echo "should_run=true" >> $GITHUB_OUTPUT
fi

pull-request:
name: Create Pull Request
needs: [check-commit]
if: ${{ needs.check-commit.outputs.should_run != 'false' }}
runs-on: ubuntu-latest
outputs:
pr_number: ${{ steps.pr-number.outputs.pull_request_number }}
steps:
- uses: actions/checkout@v3
- name: Get Current Date
id: date
run: |
echo "date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT

- name: Get Git Short Commit
id: git-short
run: |
echo "short_sha=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT

- name: Open Pull Request
id: open-pr
run: |
gh pr create --label "autogenerated" --title "${{ steps.date.outputs.date }} | MAIN --> PROD | DEV (${{ steps.git-short.outputs.short_sha }}) --> STAGING" --body "This is an auto-generated pull request to merge main into prod for a staging release on ${{ steps.date.outputs.date }} with the last commit being merged as ${{ steps.git-short.outputs.short_sha }}" --base prod --head main

- name: Get Pull Request Number
id: pr-number
run: echo "pull_request_number=$(gh pr view --json number -q .number || echo "")" >> $GITHUB_OUTPUT

- name: Comment on Pull Request
id: pr-comment
run: |
gh pr comment ${{ steps.pr-number.outputs.pull_request_number }} --body "Please close and re-open this pull request to ensure that a terraform plan is generated on the PR for the staging deployment after merging."
6 changes: 3 additions & 3 deletions .github/workflows/daily-regression-tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Run Daily Regression Tests
on:
schedule:
- cron: '0 9 * * 1-5'

# schedule:
# - cron: '0 9 * * 1-5'
workflow_dispatch:
jobs:
regression-test:
name: Run Regression Tests
Expand Down
92 changes: 92 additions & 0 deletions .github/workflows/dct-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---
name: Pull Third Party Containers, Scan, and Publish to GHCR
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * 0'

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
pull-and-scan:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
GH_REPO: asteel-gsa/fac
strategy:
fail-fast: false
matrix:
image:
- name: postgrest/postgrest:latest
short-name: postgrest
- name: ghcr.io/gsa-tts/clamav-rest/clamav:latest
short-name: clamav

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2

- name: Pull Docker Image
run: docker pull ${{ matrix.image.name }}

- name: Scan Image
run: docker run aquasec/trivy:latest image --timeout 5m --scanners vuln --exit-code 1 --severity CRITICAL,HIGH ${{ matrix.image.name }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ env.GH_TOKEN }}

- name: Setup Keys for DCT
working-directory: ./backend
env:
SSH_PRIVATE_KEY: ${{secrets.RSA_KEY}}
run: |
echo "$SSH_PRIVATE_KEY" > private.pem
chmod 600 private.pem
openssl rsa -in "private.pem" -pubout > "public.pem"

# - name: Add Signer
# working-directory: ./backend
# env:
# ROOT_PASS: ${{ secrets.DCT_ROOT_PASS}}
# REPO_PASS: ${{ env.GH_TOKEN }}
# shell: bash
# run: |
# { echo "$ROOT_PASS"; echo "$ROOT_PASS"; echo "$REPO_PASS"; echo "$REPO_PASS"; } | docker trust signer add --key public.pem fac ghcr.io/${{ env.GH_REPO }}/${{ matrix.image.short-name }}

- name: Load the private key onto Docker Trust Store
env:
ROOT_PASS: ${{secrets.DCT_ROOT_PASS}}
working-directory: ./backend
shell: bash
run: |
{ echo "$ROOT_PASS"; echo "$ROOT_PASS"; } | docker trust key load private.pem --name fac

- name: Tag Image
run: |
docker tag ${{ matrix.image.name }} ghcr.io/${{ env.GH_REPO }}/${{ matrix.image.short-name }}:latest

- name: Set Docker Content Trust
run: echo "DOCKER_CONTENT_TRUST=1" >> $GITHUB_ENV

- name: Sign and Push to GHCR
env:
ROOT_PASS: ${{secrets.DCT_ROOT_PASS}}
REPO_PASS: ${{ env.GH_TOKEN }}
shell: bash
run: |
{ echo "$ROOT_PASS"; echo "$ROOT_PASS"; echo "$REPO_PASS"; echo "$REPO_PASS"; } | docker push ghcr.io/${{ env.GH_REPO }}/${{ matrix.image.short-name }}:latest

- name: Inspect Content Trust
run: |
docker trust inspect --pretty ghcr.io/${{ env.GH_REPO }}/${{ matrix.image.short-name }}:latest
4 changes: 1 addition & 3 deletions .github/workflows/deploy-development.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
name: Deploy to Development and Management Environment
on:
push:
branches:
- main
workflow_dispatch: null

jobs:
# ensure that every time a push to main occurs, the container is built and published to ghcr
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/materialize-views.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: Run the Materialize Views Django Function
on:
schedule:
# Run every 4 hours
- cron: '*/5 * * * *'

workflow_dispatch:
inputs:
environment:
required: true
type: choice
description: The environment the workflow should run on.
options:
- dev
- staging
- preview
- production

jobs:
scheduled-materialize-views:
if: ${{ github.event.schedule == '*/5 * * * *' }}
strategy:
matrix:
environments: ["dev", "staging", "production"]
name: Run Materialize Views
runs-on: ubuntu-latest
environment: ${{ matrix.environments }}
env:
space: ${{ matrix.environments }}
steps:
- name: Run Command
shell: bash
id: date
run: echo "Testing Matrix"

dispatch-materialize-views:
if: ${{ github.event.inputs.environment != '' }}
name: Run Materialize Views
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
env:
space: ${{ inputs.environment }}
steps:
- name: Run Command
shell: bash
id: date
run: echo "Testing Matrix"
4 changes: 2 additions & 2 deletions .github/workflows/pull-containers-and-push-to-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name: Pull Third Party Containers, Scan, and Publish to GHCR
on:
workflow_dispatch:
schedule:
- cron: '0 5 * * 0'
# schedule:
# - cron: '0 5 * * 0'

jobs:
pull-and-scan:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/staging-scheduled-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Scheduled Deploy From Main to Staging
on:
schedule:
# schedule:
# Invoke every Mon-Sat
- cron: '0 10 * * 1-6'
# - cron: '0 10 * * 1-6'
workflow_dispatch: null

jobs:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ permissions:

jobs:
trivy:
if: contains('["asteel-asdasd"]', github.actor)
# if: ${{ github.actor != 'asteel-gsa' }}
permissions:
contents: read
security-events: write
Expand All @@ -39,7 +41,7 @@ jobs:
run: docker build -t ${{ env.DOCKER_NAME }}:${{ steps.date.outputs.date }} .

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.18.0
uses: aquasecurity/trivy-action@0.24.0
with:
image-ref: '${{ env.DOCKER_NAME }}:${{ steps.date.outputs.date }}'
scan-type: 'image'
Expand All @@ -57,6 +59,8 @@ jobs:
sarif_file: 'trivy-results.sarif'

scan-third-party:
if: contains('["asteel-asdasd"]', github.actor)
# if: ${{ github.actor != 'asteel-gsa' }}
permissions:
contents: read
security-events: write
Expand All @@ -74,7 +78,7 @@ jobs:
run: docker pull ${{ matrix.image.name }}

- name: Run Trivy vulnerability scanner on Third Party Images
uses: aquasecurity/trivy-action@0.18.0
uses: aquasecurity/trivy-action@0.24.0
with:
image-ref: '${{ matrix.image.name }}'
scan-type: 'image'
Expand Down
6 changes: 3 additions & 3 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENV PYTHONUNBUFFERED 1

RUN apt-get -yq update && \
apt install -y \
apt-transport-https \
apt-transport-https \
build-essential \
ca-certificates \
chromium \
Expand All @@ -19,7 +19,7 @@ RUN apt-get -yq update && \
gnupg \
gnupg2 \
postgresql-client \
wget
wget

###############################
# STORAGE
Expand Down Expand Up @@ -62,7 +62,7 @@ RUN npm ci && \

COPY . /src/

RUN npm run build
RUN npm run build

###############################
# DEV
Expand Down
Loading