Skip to content

Commit

Permalink
switching to environment secrets.. issue is with repo secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelbaker-cisa committed Jul 31, 2024
1 parent c9b1715 commit c6aa229
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/run_smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ on:
- "main"
- "*smoke*"

env:
GWS_SUBJECT_EMAIL: ${{ secrets.GWS_SUBJECT_EMAIL }}
GWS_GITHUB_AUTOMATION_CREDS: ${{ secrets.GWS_GITHUB_AUTOMATION_CREDS }}
#env:
# GWS_SUBJECT_EMAIL: ${{ secrets.GWS_SUBJECT_EMAIL }}
# GWS_GITHUB_AUTOMATION_CREDS: ${{ secrets.GWS_GITHUB_AUTOMATION_CREDS }}

jobs:
smoke-test:
Expand All @@ -29,6 +29,7 @@ jobs:
os: [windows-latest, macos-latest]
python-version: [3.12]
runs-on: ${{ matrix.os }}
environment: Development
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand All @@ -45,18 +46,18 @@ jobs:
with:
operating-system: "windows"
opa-version: "0.60.0"
credentials: $env:GWS_GITHUB_AUTOMATION_CREDS
credentials: ${{ secrets.GWS_GITHUB_AUTOMATION_CREDS }}

- name: Setup Dependencies (macOS)
if: ${{ matrix.os == 'macos-latest' }}
uses: ./.github/actions/setup-dependencies-macos
with:
operating-system: "macos"
opa-version: "0.60.0"
credentials: $env:GWS_GITHUB_AUTOMATION_CREDS
credentials: ${{ secrets.GWS_GITHUB_AUTOMATION_CREDS }}

- name: Execute ScubaGoggles and check for correct output
run: |
echo "run scubagoggles"
ls
pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="$env:GWS_SUBJECT_EMAIL"
pytest -s ./Testing/Functional/SmokeTests/ --subjectemail="${{ secrets.GWS_SUBJECT_EMAIL }}"

0 comments on commit c6aa229

Please sign in to comment.