Initial Oracle Deep Data Security lab kit
This commit is contained in:
36
.github/workflows/repo-quality.yml
vendored
Normal file
36
.github/workflows/repo-quality.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Repo Quality
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
structure:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Check required scenario files
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
for scenario in scenarios/*; do
|
||||
test -f "$scenario/README.md"
|
||||
test -f "$scenario/metadata.yaml"
|
||||
test -f "$scenario/sql/99_reset.sql"
|
||||
test -f "$scenario/evidence/expected-results.md"
|
||||
done
|
||||
|
||||
- name: Check forbidden files
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if find . -name "*.tfvars" -o -name "*.pem" -o -name "*.key" | grep .; then
|
||||
echo "Secret-like files must not be committed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
39
.github/workflows/terraform-validate.yml
vendored
Normal file
39
.github/workflows/terraform-validate.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Terraform Validate
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "terraform/**"
|
||||
- ".github/workflows/terraform-validate.yml"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "terraform/**"
|
||||
- ".github/workflows/terraform-validate.yml"
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: terraform/envs/demo
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: hashicorp/setup-terraform@v3
|
||||
with:
|
||||
terraform_version: "1.8.5"
|
||||
|
||||
- name: Terraform fmt
|
||||
run: terraform fmt -recursive -check
|
||||
|
||||
- name: Terraform init
|
||||
run: terraform init -backend=false
|
||||
|
||||
- name: Terraform validate
|
||||
run: terraform validate
|
||||
|
||||
Reference in New Issue
Block a user