Skip to content

Add GitHub Actions workflow for drafting PDF - #15

Merged
aeiwz merged 1 commit into
mainfrom
aeiwz-patch-6
Apr 23, 2026
Merged

Add GitHub Actions workflow for drafting PDF#15
aeiwz merged 1 commit into
mainfrom
aeiwz-patch-6

Conversation

@aeiwz

@aeiwz aeiwz commented Apr 23, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 23, 2026 11:00
@aeiwz
aeiwz merged commit 5d937c5 into main Apr 23, 2026
7 checks passed
Comment thread .github/workflows/draft-pdf.yml Dismissed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions workflow to automatically build a JOSS draft PDF from paper.md and upload it as a workflow artifact.

Changes:

  • Introduces a new workflow (Draft PDF) triggered on push.
  • Uses openjournals/openjournals-draft-action to compile paper.md into paper.pdf.
  • Uploads the generated PDF via actions/upload-artifact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- name: Checkout
uses: actions/checkout@v4
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master

Copilot AI Apr 23, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

openjournals/openjournals-draft-action@master is unpinned and may change/break unexpectedly (and increases supply-chain risk). Pin this action to a version tag or (preferably) a commit SHA, similar to how other actions are referenced with stable versions in this repo.

Suggested change
uses: openjournals/openjournals-draft-action@master
uses: openjournals/openjournals-draft-action@v1

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,24 @@
name: Draft PDF
on: [push]

Copilot AI Apr 23, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow doesn’t declare explicit permissions, so it will rely on the repository/org default token permissions. Other workflows in this repo set least-privilege permissions explicitly (e.g., .github/workflows/python-publish.yml:15-17). Consider adding a top-level permissions: contents: read (and any additional scopes strictly required) for consistency and to avoid accidental privilege escalation if defaults change.

Suggested change
permissions:
contents: read

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,24 @@
name: Draft PDF
on: [push]

Copilot AI Apr 23, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on: [push] will run this PDF build on every push to every branch, including changes unrelated to the paper, which can add unnecessary CI load. Consider scoping the trigger (e.g., push on main and/or paths limited to paper.md/paper.bib, and optionally pull_request/workflow_dispatch), similar to .github/workflows/codeql.yml:14-18 using branch filters.

Suggested change
on: [push]
on:
push:
paths:
- paper.md
- paper.bib
- .github/workflows/draft-pdf.yml
workflow_dispatch:

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants