Skip to content

Commit

Permalink
revised action testing
Browse files Browse the repository at this point in the history
  • Loading branch information
carmithersh committed May 20, 2024
1 parent 5c507c7 commit aaaea2e
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/oidc-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
}'
- name: Setup JFrog CLI
id: setup
id: setup-jfrog-cli
uses: ./
env:
JF_URL: ${{ secrets.JFROG_PLATFORM_URL }}
Expand All @@ -72,16 +72,13 @@ jobs:
run: |
jf rt s "some-repo/"
- name: Test outputs
- name: Test User Output
shell: bash
run: |
echo "os is $RUNNER_OS"
if [ -z "${{ steps.setup.outputs.jf-oidc-token }}" ]; then
exit 1
fi
if [ -z "${{ steps.setup.outputs.jf-oidc-user }}" ]; then
exit 1
fi
run: test -n "${{ steps.setup-jfrog-cli.outputs.jf-oidc-user }}"

- name: Test Token Output
shell: bash
run: test -n "${{ steps.setup-jfrog-cli.outputs.jf-oidc-token }}"

# Removing the OIDC integration will remove the Identity Mapping as well
- name: Delete OIDC integration
Expand Down

0 comments on commit aaaea2e

Please sign in to comment.