Skip to content

Commit 0237fa8

Browse files
authored
Merge pull request #434 from MetaCell/release/1.0.0
Release/1.0.0
2 parents 231de56 + 324ea0f commit 0237fa8

315 files changed

Lines changed: 8050 additions & 4134 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
**/node_modules
2-
.tox
2+
.tox
3+
docs
4+
applications
5+
infrastructure
6+
blueprint
7+
test
8+
.github
9+
.git
10+
.vscode

.github/pull_request_template.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Closes #
2+
3+
Implemented solution: ...
4+
5+
How to test this PR: ...
6+
7+
### Sanity checks:
8+
- [ ] The pull request is explicitly linked to the relevant issue(s)
9+
- [ ] The issue is well described: clearly states the problem and the general proposed solution(s)
10+
- [ ] From the issue and the current PR it is explicitly stated how to test the current change
11+
- [ ] The labels in the issue set the scope and the type of issue (bug, feature, etc.)
12+
- [ ] All the automated test checks are passing
13+
- [ ] All the linked issues are included in one milestone
14+
- [ ] All the linked issues are in the Review/QA column of the [board](https://app.zenhub.com/workspaces/cloud-harness-5fdb203b7e195b0015a273d7/board)
15+
- [ ] All the linked issues are assigned
16+
17+
### Breaking changes (select one):
18+
- [ ] The present changes do not change the preexisting api in any way
19+
- [ ] This PR and the issue are tagged as a `breaking-change`
20+
21+
### Possible deployment updates issues (select one):
22+
- [ ] There is no reason why deployments based on CloudHarness may break after the current update
23+
- [ ] This PR and the issue are tagged as `alert:deployment`
24+
25+
### Test coverage (select one):
26+
- [ ] Tests for the relevant cases are included in this pr
27+
- [ ] The changes included in this pr are out of the current test coverage scope
28+
29+
### Documentation (select one):
30+
- [ ] The documentation has been updated to match the current changes
31+
- [ ] The changes included in this PR are out of the current documentation scope
32+
33+
### Nice to have (if relevant):
34+
- [ ] Screenshots of the changes
35+
- [ ] Explanatory video/animated gif
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ develop, master ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ develop ]
20+
schedule:
21+
- cron: '22 12 * * 2'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'javascript', 'python' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v2
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v1
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
52+
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v1
57+
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 https://git.io/JvXDl
60+
61+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# and modify them (or add more) to build your code if your project
63+
# uses a compiled language
64+
65+
#- run: |
66+
# make bootstrap
67+
# make release
68+
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v1
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: build
7+
8+
on:
9+
push:
10+
branches: [ develop, master ]
11+
pull_request:
12+
# The branches below must be a subset of the branches above
13+
branches: [ develop ]
14+
schedule:
15+
- cron: '30 12 * * 5'
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
build:
22+
permissions:
23+
contents: read # for actions/checkout to fetch code
24+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
25+
name: Build
26+
runs-on: "ubuntu-18.04"
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v2
30+
31+
- name: Build an image from Dockerfile
32+
run: |
33+
docker build -t cloudharness-base:${{ github.sha }} . -f ./infrastructure/base-images/cloudharness-base/Dockerfile
34+
35+
- name: Run Trivy vulnerability scanner
36+
uses: aquasecurity/trivy-action@2a2157eb22c08c9a1fac99263430307b8d1bc7a2
37+
with:
38+
image-ref: 'cloudharness-base:${{ github.sha }}'
39+
format: 'template'
40+
template: '@/contrib/sarif.tpl'
41+
output: 'trivy-results.sarif'
42+
severity: 'CRITICAL,HIGH'
43+
44+
- name: Upload Trivy scan results to GitHub Security tab
45+
uses: github/codeql-action/upload-sarif@v1
46+
with:
47+
sarif_file: 'trivy-results.sarif'

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ deployment
1111
*.idea
1212
/build
1313
skaffold.yaml
14-
.tox
14+
.tox
15+
.pytest_cache
16+
.overrides

0 commit comments

Comments
 (0)