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 862143c commit 93dad44
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
22 changes: 11 additions & 11 deletions .github/actions/setup-dependencies-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ inputs:
runs:
using: "composite"
steps:
- name: Setup credentials for service account
id: create-json
uses: jsdaniell/[email protected]
with:
name: "credentials.json"
json: ${{ inputs.credentials }}

- name: Setup credentials for service account
shell: bash
run: |
ls -la
#- name: Setup credentials for service account
# id: create-json
# uses: jsdaniell/[email protected]
# with:
# name: "credentials.json"
# json: ${{ inputs.credentials }}
#
#- name: Setup credentials for service account
# shell: bash
# run: |
# ls -la

- name: Setup virtualenv
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/setup-dependencies-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ runs:
shell: powershell
run: python download_opa.py -v ${{ inputs.opa-version }} -os ${{ inputs.operating-system }}

- name: Setup credentials for service account
shell: powershell
run: Set-Content -Path credentials.json -Value ${{ inputs.credentials }}
#- name: Setup credentials for service account
# shell: powershell
# run: Set-Content -Path credentials.json -Value ${{ inputs.credentials }}
9 changes: 7 additions & 2 deletions .github/workflows/run_smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,14 @@ jobs:
operating-system: "macos"
opa-version: "0.60.0"
credentials: ${{ secrets.GWS_GITHUB_AUTOMATION_CREDS }}

- name: Setup credentials for service account
id: create-json
uses: jsdaniell/[email protected]
with:
name: "credentials.json"
json: ${{ secrets.GWS_GITHUB_AUTOMATION_CREDS }}

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

0 comments on commit 93dad44

Please sign in to comment.