Skip to content

Commit

Permalink
Fix: GitHub workflow script injection
Browse files Browse the repository at this point in the history
Signed-off-by: Joyce Brum <joycebrum@google.com>
  • Loading branch information
joycebrum committed Nov 13, 2024
1 parent 4d2ddd6 commit 6457037
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/hdmf_compatibility_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Check HDMF Dev Compatibility

on: [pull_request, workflow_dispatch]

env:
HEAD_REF: ${{ github.head_ref }}

jobs:
check_compatibility:
runs-on: ubuntu-latest
Expand All @@ -23,6 +26,6 @@ jobs:
python -m pip install -r requirements-dev.txt -r requirements.txt
python -m pip install -e .
cd src/hdmf/common/hdmf-common-schema
git checkout ${{ github.head_ref }} # checkout branch
git checkout $HEAD_REF # checkout branch
cd ../../../..
pytest tests/unit/common/

0 comments on commit 6457037

Please sign in to comment.