Skip to content

Commit

Permalink
fix: parse args before passing them to exec
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier committed Oct 3, 2024
1 parent 196fa9c commit 035faa9
Show file tree
Hide file tree
Showing 8 changed files with 1,156 additions and 16 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,23 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run Server
run: docker run -d -p 8080:8080 ghcr.io/cerberauth/api-vulns-challenges/jwt-strong-eddsa-key:latest

run:
docker run -d -p 8080:8080
ghcr.io/cerberauth/api-vulns-challenges/jwt-strong-eddsa-key:latest

- name: Get JWT
id: get-jwt
run: echo "jwt=$(docker run --rm ghcr.io/cerberauth/api-vulns-challenges/jwt-strong-eddsa-key:latest jwt) >> $GITHUB_OUTPUT
run:
echo "jwt=$(docker run --rm
ghcr.io/cerberauth/api-vulns-challenges/jwt-strong-eddsa-key:latest
jwt)" >> $GITHUB_OUTPUT

- name: Test CURL Local Action
id: test-curl-action
uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
curl: 'curl http://localhost:8080 -H "Authorization: Bearer ${{ steps.get-jwt.outputs.jwt }}" --scans "jwt.*"'
curl:
'curl http://localhost:8080 -H "Authorization: Bearer ${{
steps.get-jwt.outputs.jwt }}" --scans "jwt.*"'
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 035faa9

Please sign in to comment.