Skip to content

fix: saturate memory offset taken from stack #1633

fix: saturate memory offset taken from stack

fix: saturate memory offset taken from stack #1633

Workflow file for this run

name: Compare Snapshot
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
pull-requests: write
jobs:
compare-snapshot:
permissions: write-all
# trunk-ignore(actionlint/runner-label)
runs-on: ubuntu-latest-16-cores
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Set up Scarb
uses: software-mansion/setup-scarb@v1
- name: Run compare_snapshot script
id: run-script
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
continue-on-error: true
run: |
result=$(python scripts/compare_snapshot.py 2>&1)
status=$(echo "$result" | tail -n 1 | awk -F ':' '{print $1}')
echo "$result" >> "$GITHUB_STEP_SUMMARY"
echo "status=$status" >> "$GITHUB_OUTPUT"
- name: Exit step based on status
if: steps.run-script.outputs.status == 'ERROR'
run: exit 1