-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from nautobot/develop
Release 1.1.0
- Loading branch information
Showing
29 changed files
with
1,503 additions
and
141 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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
--- | ||
name: "CI" | ||
|
||
on: # yamllint disable-line rule:truthy | ||
workflow_dispatch: # yamllint disable-line rule:empty-values | ||
pull_request: # yamllint disable-line rule:empty-values | ||
|
||
concurrency: | ||
group: "${{ github.head_ref }}-ci" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
pre-commit-check: | ||
name: "Run pre-commit checks" | ||
runs-on: "ubuntu-20.04" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Setup Go" | ||
uses: "actions/setup-go@v2" | ||
|
||
- name: "Install helm-docs" | ||
run: "go get github.com/norwoodj/helm-docs/cmd/helm-docs" | ||
env: | ||
GO111MODULE: "on" | ||
|
||
- run: "echo $HOME/go/bin >> $GITHUB_PATH" | ||
|
||
- uses: "dorny/paths-filter@v2" | ||
id: "filter" | ||
with: | ||
list-files: "shell" | ||
filters: | | ||
addedOrModified: | ||
- added|modified: '**' | ||
# run only if changed files were detected | ||
- name: "Run against changes" | ||
uses: "pre-commit/[email protected]" | ||
if: "steps.filter.outputs.addedOrModified == 'true'" | ||
with: | ||
extra_args: "--files ${{ steps.filter.outputs.addedOrModified_files }}" | ||
|
||
# run if no changed files were detected (e.g. workflow_dispatch on main branch) | ||
- name: "Run against all files" | ||
uses: "pre-commit/[email protected]" | ||
if: "steps.filter.outputs.addedOrModified != 'true'" | ||
with: | ||
extra_args: "--all-files" | ||
|
||
snyk-security-check: | ||
name: "Snyk Security Scanning" | ||
runs-on: "ubuntu-20.04" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
- uses: "azure/setup-helm@v1" | ||
- run: "mkdir template_output" | ||
- run: "helm template -f charts/nautobot/linter_values.yaml charts/nautobot --output-dir=./template_output/test-postgresql" | ||
- run: "helm template -f charts/nautobot/linter_values_mysql.yaml charts/nautobot --output-dir=./template_output/test-mysql" | ||
- run: "helm template -f charts/nautobot/linter_values_postgresql_ha.yaml charts/nautobot --output-dir=./template_output/test-postgresql-ha" | ||
- name: "Run Snyk to check template files for security issues" | ||
# Snyk can be used to break the build when it detects security issues. | ||
# In this case we want to upload the issues to GitHub Code Scanning | ||
continue-on-error: true | ||
uses: "snyk/actions/iac@master" | ||
env: | ||
# In order to use the Snyk Action you will need to have a Snyk API token. | ||
# More details in https://github.com/snyk/actions#getting-your-snyk-token | ||
SNYK_TOKEN: "${{ secrets.SNYK_TOKEN }}" | ||
with: | ||
# Add the path to the configuration file that you would like to test. | ||
# For example `deployment.yaml` for a Kubernetes deployment manifest | ||
# or `main.tf` for a Terraform configuration file | ||
file: "./template_output" | ||
- name: "Upload result to GitHub Code Scanning" | ||
uses: "github/codeql-action/upload-sarif@v1" | ||
with: | ||
sarif_file: "snyk.sarif" | ||
|
||
kubescape-security-check: | ||
name: "Kubescape Security Scanning" | ||
runs-on: "ubuntu-20.04" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
- uses: "azure/setup-helm@v1" | ||
- name: "Install Kubescape" | ||
run: "curl -s https://raw.githubusercontent.com/armosec/kubescape/master/install.sh | /bin/bash" | ||
- name: "Kubescape NSA Scan - PostgreSQL" | ||
run: "helm template -f charts/nautobot/linter_values.yaml charts/nautobot | kubescape scan framework nsa - --fail-threshold 100 --exceptions ./kubescape-exceptions.json" | ||
- name: "Kubescape NSA Scan - MySQL" | ||
run: "helm template -f charts/nautobot/linter_values_mysql.yaml charts/nautobot | kubescape scan framework nsa - --fail-threshold 100 --exceptions ./kubescape-exceptions.json" | ||
- name: "Kubescape NSA Scan - PostgreSQL HA" | ||
run: "helm template -f charts/nautobot/linter_values_postgresql_ha.yaml charts/nautobot | kubescape scan framework nsa - --fail-threshold 100 --exceptions ./kubescape-exceptions.json" | ||
- name: "Kubescape MITRE Scan - PostgreSQL" | ||
run: "helm template -f charts/nautobot/linter_values.yaml charts/nautobot | kubescape scan framework mitre - --fail-threshold 100 --exceptions ./kubescape-exceptions.json" | ||
- name: "Kubescape MITRE Scan - MySQL" | ||
run: "helm template -f charts/nautobot/linter_values_mysql.yaml charts/nautobot | kubescape scan framework mitre - --fail-threshold 100 --exceptions ./kubescape-exceptions.json" | ||
- name: "Kubescape MITRE Scan - PostgreSQL HA" | ||
run: "helm template -f charts/nautobot/linter_values_postgresql_ha.yaml charts/nautobot | kubescape scan framework mitre - --fail-threshold 100 --exceptions ./kubescape-exceptions.json" | ||
- name: "Kubescape ARMOBest Scan - PostgreSQL" | ||
run: "helm template -f charts/nautobot/linter_values.yaml charts/nautobot | kubescape scan framework armobest - --fail-threshold 100 --exceptions ./kubescape-exceptions.json" | ||
- name: "Kubescape ARMOBest Scan - MySQL" | ||
run: "helm template -f charts/nautobot/linter_values_mysql.yaml charts/nautobot | kubescape scan framework armobest - --fail-threshold 100 --exceptions ./kubescape-exceptions.json" | ||
- name: "Kubescape ARMOBest Scan - PostgreSQL HA" | ||
run: "helm template -f charts/nautobot/linter_values_postgresql_ha.yaml charts/nautobot | kubescape scan framework armobest - --fail-threshold 100 --exceptions ./kubescape-exceptions.json" |
This file was deleted.
Oops, something went wrong.
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
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,12 +1,18 @@ | ||
dependencies: | ||
- name: redis | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 14.8.11 | ||
version: 15.6.7 | ||
- name: postgresql | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 10.9.5 | ||
version: 10.13.14 | ||
- name: postgresql-ha | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 8.1.2 | ||
- name: mariadb | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 10.1.1 | ||
- name: common | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 1.8.0 | ||
digest: sha256:0f4815616bc7c2d4770708133b646a5e83a797d3e1f3888a91ddf01b0a4ee2f4 | ||
generated: "2021-09-10T07:24:13.246116-06:00" | ||
version: 1.10.3 | ||
digest: sha256:113aa6347e7c54f40f07641f76e032397d434f72a8997022725a34d5abc25ce5 | ||
generated: "2021-12-16T11:01:22.510851-07:00" |
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.