Skip to content

Commit

Permalink
Add CICD option to script calls
Browse files Browse the repository at this point in the history
  • Loading branch information
isamauny committed Feb 9, 2024
1 parent 04f2112 commit 162b906
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/42c-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: get_photoapi_token
id: get_photoapi_token
run: |
login_response=$(python .42c/scripts/pixi-login.py -u ${{ env.USER_NAME }} -p ${{ env.USER_PASS }} -t ${{ env.TARGET_URL }})
login_response=$(python .42c/scripts/pixi-login.py -c GITHUB -u ${{ env.USER_NAME }} -p ${{ env.USER_PASS }} -t ${{ env.TARGET_URL }})
echo "PHOTO_API_TOKEN=$login_response" >> $GITHUB_OUTPUT
- name: Scan API for vulnerabilities
uses: 42Crunch/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
inputs:
scriptSource: 'filePath' # Options: filePath, inline
scriptPath: $(Build.Repository.LocalPath)/.42c/scripts/pixi-login.py
arguments: -u $(USER_NAME) -p $(USER_PASS) -t $(TARGET_URL)
arguments: -u $(USER_NAME) -p $(USER_PASS) -t $(TARGET_URL) -c AZURE
- task: APISecurityScanFreemium@1
displayName: Scan API
inputs:
Expand Down

0 comments on commit 162b906

Please sign in to comment.