Update test file for PR #126
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Action Test Windows | |
on: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
rqc: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Save test data | |
id: input_data | |
run: | | |
# Read the content of the Python script into a variable | |
TEST=$(<test.py) | |
# Use printf to safely handle multi-line strings and special characters | |
printf '%s\n' "$TEST" | |
# Use printf to append the content to the $GITHUB_OUTPUT, properly handling multi-line strings | |
printf 'test<<EOF\n%s\nEOF\n' "$TEST" >> $GITHUB_OUTPUT | |
shell: bash | |
- uses: GuillaumeFalourd/stackspot-ai-rqc@main | |
id: rqc | |
with: | |
CLIENT_ID: ${{ secrets.CLIENT_ID }} | |
CLIENT_KEY: ${{ secrets.CLIENT_KEY }} | |
CLIENT_REALM: stackspot | |
QC_SLUG: sast-rqc-v0 | |
INPUT_DATA: ${{ steps.input_data.outputs.test }} | |
- name: Check Remote Quick Command answer | |
run: echo ${{ toJSON(steps.rqc.outputs.rqc_result) }} | |
shell: bash |