Handle Crashes Gracefully GitHub Actions

Viewed 12

I have 2 files that will be run on a program. I know that those 2 files will cause a crash such as buffer overflow or perform stack smashing. How would I gracefully handle these crashes so that I dont keep having a red X as my output. I tried if: always() and continue-on-error: true, however this doesnt gracefully handle the crashes. This is using a linux system. Cat is the program and a.txt ( overflow) and b.txt (infinite loop) Given yml file:

name: Some fILE
on:
  push:
   branches: [ main ]
jobs:
build:
  runs-on: ubuntu-latest
  continue-on-error: true
steps:
- uses: actions/checkout@v2
- name: Run program and first file
  run: ./cat a.txt
- name: Run Program and second file
  run: ./cat b.txt 
0 Answers
Related