-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (31 loc) · 1.1 KB
/
action-test-macos.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Action Test MacOS
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rqc:
runs-on: macos-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) }}