generated from cisagov/ScubaGear
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
228 changed files
with
277,069 additions
and
270,296 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,23 @@ | ||
# If you know it's a text file, don't use "=auto" because with that you're | ||
# letting Git decide whether it's text (and YOU already know it IS). | ||
|
||
*.css text | ||
*.csv text | ||
*.html text | ||
*.jpg binary | ||
*.js text | ||
*.json text | ||
*.md text | ||
*.pdf binary | ||
*.png binary | ||
*.py text | ||
*.rego text | ||
*.sh text eol=lf | ||
*.svg text | ||
*.txt text | ||
*.yaml text | ||
*.yml text | ||
.gitattributes text | ||
.gitignore text | ||
LICENSE text | ||
MANIFEST.in text |
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
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,5 +1,5 @@ | ||
name: Run Smoke Test | ||
on: | ||
name: Run Smoke Test | ||
on: | ||
pull_request: | ||
types: [opened, reopened] | ||
branches: | ||
|
@@ -77,33 +77,33 @@ jobs: | |
|
||
- name: Setup Python v${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
cache-dependency-path: "requirements.txt" | ||
|
||
- name: Setup Dependencies (Windows) | ||
if: ${{ matrix.operating-system == 'windows-latest' }} | ||
uses: ./.github/actions/setup-dependencies-windows | ||
with: | ||
operating-system: "windows" | ||
opa-version: ${{ needs.configuration.outputs.opa-version }} | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Setup Dependencies (macOS) | ||
if: ${{ matrix.operating-system == 'macos-latest' }} | ||
uses: ./.github/actions/setup-dependencies-macos | ||
with: | ||
operating-system: "macos" | ||
opa-version: ${{ needs.configuration.outputs.opa-version }} | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Setup credentials for service account | ||
id: create-json | ||
uses: jsdaniell/[email protected] | ||
with: | ||
with: | ||
name: "credentials.json" | ||
json: ${{ secrets.GWS_GITHUB_AUTOMATION_CREDS }} | ||
|
||
- name: Run ScubaGoggles and check for correct output | ||
run: pytest ./Testing/Functional/SmokeTests/ -vvv --subjectemail="${{ secrets.GWS_SUBJECT_EMAIL }}" --customerdomain="${{ secrets.GWS_DOMAIN }}" | ||
run: pytest ./scubagoggles/Testing/Functional/SmokeTests/ -vvv --subjectemail="${{ secrets.GWS_SUBJECT_EMAIL }}" --customerdomain="${{ secrets.GWS_DOMAIN }}" |
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,60 +1,91 @@ | ||
# Regal linter configuration | ||
# All rules documented here: | ||
# https://docs.styra.com/regal/category/rules | ||
rules: | ||
custom: | ||
naming-convention: | ||
# Codifying the conventions used in this project. | ||
# By all means, change this to be less restrictive | ||
# if you wish. | ||
level: error | ||
conventions: | ||
- pattern: '^[A-Z]+[a-zA-Z0-9_]+$|^tests$|^test_|^check_' | ||
targets: | ||
- rule | ||
- pattern: '^[A-Z]+[a-zA-Z0-9_]+$' | ||
targets: | ||
- function | ||
- pattern: '^[a-z]+$' | ||
targets: | ||
- package | ||
idiomatic: | ||
no-defined-entrypoint: | ||
# This is a good practice for documentation, and | ||
# compilation to Wasm/IR, but not a requirement. | ||
# Safe to ignore. | ||
level: ignore | ||
imports: | ||
implicit-future-keywords: | ||
# This rule is on it's way out anyway, as future | ||
# versions of OPA will make these keywords standard. | ||
level: ignore | ||
style: | ||
external-reference: | ||
# This rule is quite opinionated / style preference | ||
# safe to ignore. | ||
level: ignore | ||
file-length: | ||
level: ignore | ||
no-whitespace-comment: | ||
# This repo is actually good about this, but frequently | ||
# uses '#--' as a delimeter of sorts. That should be OK, | ||
# and the next version of Regal will allow for exceptions | ||
# like this: https://github.com/StyraInc/regal/issues/379 | ||
level: ignore | ||
opa-fmt: | ||
level: ignore | ||
prefer-snake-case: | ||
# This is the default style preference for Rego, but since | ||
# the style of this project better matches the domain it is | ||
# modeling, we'll ignore this rule in favor of the custom | ||
# naming-convention rule defined above. | ||
level: ignore | ||
rule-length: | ||
level: ignore | ||
todo-comment: | ||
level: ignore | ||
testing: | ||
test-outside-test-package: | ||
# This is just a style preference | ||
level: ignore | ||
# Regal linter configuration | ||
# All rules documented here: | ||
# https://docs.styra.com/regal/category/rules | ||
rules: | ||
custom: | ||
naming-convention: | ||
# Codifying the conventions used in this project. | ||
# By all means, change this to be less restrictive | ||
# if you wish. | ||
level: error | ||
conventions: | ||
- pattern: '^[A-Z]+[a-zA-Z0-9_]+$|^tests$|^test_|^check_' | ||
targets: | ||
- rule | ||
- pattern: '^[A-Z]+[a-zA-Z0-9_]+$' | ||
targets: | ||
- function | ||
- pattern: '^[a-z]+$' | ||
targets: | ||
- package | ||
idiomatic: | ||
no-defined-entrypoint: | ||
# This is a good practice for documentation, and | ||
# compilation to Wasm/IR, but not a requirement. | ||
# Safe to ignore. | ||
level: ignore | ||
directory-package-mismatch: | ||
# Will prefixing the packages with "scubagoggles.rego" really | ||
# be an improvement? | ||
level: ignore | ||
imports: | ||
implicit-future-keywords: | ||
# This rule is on it's way out anyway, as future | ||
# versions of OPA will make these keywords standard. | ||
level: ignore | ||
prefer-package-imports: | ||
# The following are used so often that there's no need | ||
# for the "utils." prefix every single time they're used. | ||
ignore-import-paths: | ||
- data.utils.GetFriendlyEnabledValue | ||
- data.utils.PolicyApiInUse | ||
- data.utils.FailTestBothNonCompliant | ||
- data.utils.FailTestGroupNonCompliant | ||
- data.utils.FailTestOUNonCompliant | ||
- data.utils.FailTestNonCompliant | ||
- data.utils.FailTestNoEvent | ||
- data.utils.PassTestResult | ||
- data.utils.PassTestResultWithMessage | ||
use-rego-v1: | ||
# For now, anyway... | ||
level: ignore | ||
performance: | ||
with-outside-test-context: | ||
level: ignore | ||
style: | ||
external-reference: | ||
# This rule is quite opinionated / style preference | ||
# safe to ignore. | ||
level: ignore | ||
file-length: | ||
level: ignore | ||
messy-rule: | ||
# This is all over the place with "tests", and the way we've | ||
# done it (by baseline) makes sense. | ||
level: ignore | ||
no-whitespace-comment: | ||
# This repo is actually good about this, but frequently | ||
# uses '#--' as a delimeter of sorts. That should be OK, | ||
# and the next version of Regal will allow for exceptions | ||
# like this: https://github.com/StyraInc/regal/issues/379 | ||
level: ignore | ||
opa-fmt: | ||
level: ignore | ||
pointless-reassignment: | ||
# If this prevents duplicate strings all over the place, | ||
# then it's worth it. | ||
level: ignore | ||
prefer-snake-case: | ||
# This is the default style preference for Rego, but since | ||
# the style of this project better matches the domain it is | ||
# modeling, we'll ignore this rule in favor of the custom | ||
# naming-convention rule defined above. | ||
level: ignore | ||
rule-length: | ||
level: ignore | ||
todo-comment: | ||
level: ignore | ||
testing: | ||
test-outside-test-package: | ||
# This is just a style preference | ||
level: ignore |
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,4 +1,5 @@ | ||
# Branching Structure | ||
The Branching Structure flow diagram describes the branching strategy implemented in the ScubaGoggles project. | ||
The Branching Structure flow diagram describes the branching strategy | ||
implemented in the ScubaGoggles project. | ||
|
||
![image](/docs/images/scubagoggles_branching_structure.svg) | ||
![image](images/scubagoggles_branching_structure.svg) |
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,11 @@ | ||
# This manifest is used to ensure that certain non-Python files are included | ||
# in the ScubaGoggles distribution. The following subdirectories (and their | ||
# contents) are included: | ||
|
||
graft scubagoggles/baselines | ||
graft scubagoggles/docs | ||
graft scubagoggles/rego | ||
graft scubagoggles/reporter | ||
graft scubagoggles/sample-report | ||
graft scubagoggles/Testing | ||
graft scubagoggles/utils |
Oops, something went wrong.