Skip to content

Improve GH Actions and Dependabot#366

Merged
eloi010 merged 9 commits intomainfrom
improvement-gh-actions-and-dependabot
Feb 11, 2026
Merged

Improve GH Actions and Dependabot#366
eloi010 merged 9 commits intomainfrom
improvement-gh-actions-and-dependabot

Conversation

@eloi010
Copy link
Copy Markdown
Collaborator

@eloi010 eloi010 commented Feb 11, 2026

Note

Low Risk
Changes are limited to CI/configuration and should not affect runtime behavior; main risk is CI failures due to updated action versions or stricter permissions/tool install steps.

Overview
Adds a new .github/dependabot.yml to enable weekly Dependabot updates for GitHub Actions, with grouping/labeling and PR limits.

Hardens CI workflows by defaulting permissions to none and granting job-level minimal access, updates actions/checkout and actions/upload-artifact to @v6, and makes the spec build more reproducible by verifying SHA256 for downloaded font/tectonic artifacts and installing required system packages in a single step.

Updates Makefile buildOnGithub-% to invoke system tectonic (matching the workflow install) instead of a repo-local binary.

Written by Cursor Bugbot for commit 0ebab0f. This will update automatically on new commits. Configure here.

@cla-assistant
Copy link
Copy Markdown

cla-assistant Bot commented Feb 11, 2026

CLA assistant check
All committers have signed the CLA.

@cla-assistant
Copy link
Copy Markdown

cla-assistant Bot commented Feb 11, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Comment thread .github/workflows/compile.yml
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds Dependabot automation for GitHub Actions updates and hardens GitHub Actions workflows by applying least-privilege permissions and modernizing tooling installation in CI.

Changes:

  • Add .github/dependabot.yml to open weekly grouped GitHub Actions update PRs with standardized metadata.
  • Apply default permissions: {} to workflows and set job-level permissions explicitly.
  • Update workflow steps in compile.yml (checkout/upload-artifact versions, credential persistence, and sha256-verified downloads).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/security-code-scanner.yml Locks default token permissions down and relies on job-level permissions for the reusable scanner workflow call.
.github/workflows/compile.yml Adds least-privilege permissions and replaces ad-hoc installs with sha256-verified downloads and consolidated apt installs; updates checkout/upload-artifact actions.
.github/dependabot.yml Introduces Dependabot configuration for weekly GitHub Actions dependency updates with grouping and PR metadata.

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

archive-build-spec:
name: Build & Upload Specification PDF
permissions:
contents: read
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

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

permissions: {} at the workflow level removes all default GITHUB_TOKEN scopes, but this job later uploads an artifact. actions/upload-artifact typically requires the token to have actions: write; with only contents: read granted here, the upload step may be denied. Consider adding the minimal required actions permission at the job level (or to just the upload step via a separate job if you want to keep tighter scoping).

Suggested change
contents: read
contents: read
actions: write

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@eloi010 is that @copilot comment valid ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think it is not. That said, the original workflow never ran with restricted permissions, so this hasn't been tested empirically for this repo. The workflow dispatch will be the definitive proof. If the upload step fails with a 403, then adding actions: write is the fix, but I don't expect it to.

Comment thread .github/dependabot.yml
Copy link
Copy Markdown

Copilot AI commented Feb 11, 2026

@OlivierBBB I've opened a new pull request, #367, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Collaborator

@OlivierBBB OlivierBBB left a comment

Choose a reason for hiding this comment

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

LGTM, but I'm not particularly knowledgeable on this stuff

@eloi010 eloi010 merged commit 2196f39 into main Feb 11, 2026
9 checks passed
@eloi010 eloi010 deleted the improvement-gh-actions-and-dependabot branch February 11, 2026 14:53
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.

4 participants