Skip to content

Create FileSafetyMGR.yml #1

Create FileSafetyMGR.yml

Create FileSafetyMGR.yml #1

Workflow file for this run

name: Trusted Script Execution
on:
pull_request:
types: [opened]
jobs:
review_script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Review Pull Request
if: contains(github.event.pull_request.body, 'Approved by maintainer')
run: echo "Script looks trustworthy and is approved."
- name: Execute Script
if: contains(github.event.pull_request.body, 'Approved by maintainer')
run: ./your-script.sh

Check failure on line 22 in .github/workflows/FileSafetyMGR.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/FileSafetyMGR.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
- name: Notify about Review
if: !contains(github.event.pull_request.body, 'Approved by maintainer')
run: echo "Script requires approval from a maintainer before execution."