From b33c8f815a0fcdb4034570314d548c833fe847f0 Mon Sep 17 00:00:00 2001 From: Joyce Date: Wed, 13 Nov 2024 15:32:08 -0300 Subject: [PATCH] Fix: GitHub workflow script injection (#86) --- .github/workflows/hdmf_compatibility_schema.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hdmf_compatibility_schema.yml b/.github/workflows/hdmf_compatibility_schema.yml index dc76f68..441fd68 100644 --- a/.github/workflows/hdmf_compatibility_schema.yml +++ b/.github/workflows/hdmf_compatibility_schema.yml @@ -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 @@ -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/