Skip to content

fix(ci): harden GitHub Actions workflows (#816) - #820

Merged
paulinebm merged 1 commit into
dependabot/github_actions/actions-958e60420ffrom
security/workflow-hardening/pr-816
Sep 23, 2026
Merged

paulinebm merged 1 commit into
dependabot/github_actions/actions-958e60420ffrom
security/workflow-hardening/pr-816

Conversation

@hf-security-analysis

@hf-security-analysis hf-security-analysis Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Automated hardening of the workflow files flagged on #816.

Targets dependabot/github_actions/actions-958e60420f. Files changed, and what changed them:

  • .github/workflows/python-release.yml — action pins
  • .github/workflows/trufflehog.yml — action pins
  • .github/workflows/update_spaces.yml — action pins

Fixed by this PR:

  • HIGH unpinned-action (pinact) — .github/workflows/python-release.yml:20
  • HIGH unpinned-action (pinact) — .github/workflows/python-release.yml:22
  • HIGH unpinned-action (pinact) — .github/workflows/trufflehog.yml:19
  • HIGH unpinned-action (pinact) — .github/workflows/update_spaces.yml:20
  • HIGH unpinned-action (pinact) — .github/workflows/update_spaces.yml:24

This does not fix everything. 6 further finding(s) (6 medium) need a decision this bot should not make for you. They are in the security channel with their locations — deliberately not repeated here, since this repository may be public and they are not fixed yet.

Permissions

.github/workflows/build_documentation.yml

build was left as it is — This job only delegates to the external reusable workflow huggingface/doc-builder/.github/workflows/build_main_documentation.yml, whose jobs and steps are not visible in this file, so the required token scopes cannot be determined here.

.github/workflows/build_pr_documentation.yml

build was left as it is — This job only delegates to the external reusable workflow huggingface/doc-builder/.github/workflows/build_pr_documentation.yml, whose job-level permissions are not visible in this file, so the required scopes cannot be read from the steps here.

.github/workflows/delete_doc_comment.yml

delete was left as it is — This job only calls the external reusable workflow huggingface/doc-builder/.github/workflows/delete_doc_comment.yml, whose steps are not visible in this file, so the required scopes (likely pull-requests: write to remove a PR comment) cannot be verified here.

Anything not listed above keeps the permissions it had. To measure a job this could not read, add GitHubSecurityLab/actions-permissions/monitor to it and run the workflow — it reports the minimum the run actually used.

Pinning changes come from pinact and are mechanical. Any other change was generated by Claude — read it before merging.

@paulinebm
paulinebm merged commit bdfc86e into dependabot/github_actions/actions-958e60420f Sep 23, 2026
2 checks passed
@paulinebm
paulinebm deleted the security/workflow-hardening/pr-816 branch September 23, 2026 12:37
akshitkhokhani pushed a commit to akshitkhokhani/evaluate that referenced this pull request Nov 3, 2026
akshitkhokhani added a commit to akshitkhokhani/evaluate that referenced this pull request Nov 3, 2026
…ce#820)

Security repair: remove injected execution hooks and payloads; retain legitimate project changes.
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.

1 participant