generated from cisagov/ScubaGear
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move certain top-level directories into "scubagoggles" * implementation with policy API * correct anchor to setup utility * first step in fixing smoke test workflow * improve setup for smoke test; accommodate AMD64 OPA on ARM64 macOS * implemented initial feedback from pull request * argument parser: ensure credentials is a Path * Complete implementation of service account credentials for policy API * fix GwsAuth for service accounts - they have no token file getopa: tolerate missing "v" in specified version * documentation: moved from with "scubagoggles" subdirectory to top-level directory * build: create output directory if non-existent * documentation: minor changes * setup: download OPA; resolve other PR issues * smoke_test: remove default value for "subjectemail" in test_scubagoggles_output() * groups 4.1, 5.1: correct for probable Google changes in enumeration values drive 1.3, 1.4, 1.5, 1.7: correct misunderstanding of sharing option flags * drive rego: remove unused import * commoncontrols 3.1: remove policy API check for employee ID challenge (see 11/6 change) commoncontrols 4.1: use "friendly" value in non-compliance message * commoncontrols: remove 9.1, 9.2 policy API implementation * commoncontrols: check "takeout_service_status" in 12.1 * policy_api: implement policy reduction and apply default values scuba_argument_parser: fix bug in converting argument value data types drive rego: fix 6.1 for subOUs/groups policy_api: add ability to dump Google's raw policy response installation & OPA instructions: add more detail about setup downloading OPA
- Loading branch information
Showing
229 changed files
with
279,159 additions
and
271,943 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
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: | ||
|
@@ -32,7 +32,7 @@ on: | |
description: "Choose OPA version" | ||
required: true | ||
type: string | ||
default: "0.60.0" | ||
default: "v0.60.0" | ||
|
||
jobs: | ||
configuration: | ||
|
@@ -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 }}" |
Oops, something went wrong.