From b356f395e673e62822d5d688e431c4cdac884726 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 15 Jun 2026 06:11:50 +0000 Subject: [PATCH] Fix CI: handle invalid BibTeX responses and prevent shell injection --- .../arxiv_to_publications_correct.yml | 6 +- bin/arxiv_to_publications_correct.py | 61 +++++++++++-------- 2 files changed, 41 insertions(+), 26 deletions(-) diff --git a/.github/workflows/arxiv_to_publications_correct.yml b/.github/workflows/arxiv_to_publications_correct.yml index d336bda9..185c474a 100644 --- a/.github/workflows/arxiv_to_publications_correct.yml +++ b/.github/workflows/arxiv_to_publications_correct.yml @@ -9,12 +9,14 @@ jobs: - uses: actions/checkout@v4 - name: Look for bibtex entries that now have a DOI if: github.event.label.name == 'food for arxivbot' + env: + ISSUE_BODY: ${{ github.event.issue.body }} run: | cd bin python3 -m pip install --user --upgrade pip python3 -m pip install --user setuptools - python3 -m pip install --user bibtexparser - python3 arxiv_to_publications_correct.py -b "${{ github.event.issue.body }}" > comment.out 2>&1 + python3 -m pip install --user requests bibtexparser + python3 arxiv_to_publications_correct.py -b "$ISSUE_BODY" > comment.out 2>&1 { echo 'COMMENT<