Skip to content

Conversation

@RaviKumarGubbala
Copy link
Collaborator

Potential fix for https://github.com/arup-group/github-action-benchmark/security/code-scanning/10

To fix the problem, a permissions block should be added to restrict the GITHUB_TOKEN access to only what is required for the job. Since the workflow uses actions that only need to clone the repository (via actions/checkout) and validate typings (with typesafegithub/github-actions-typing), the job only requires read access to repository contents. The best way to fix is to insert permissions: contents: read at the job level (directly under validate-typings:), so it's clear that only this job is affected and you are explicitly restricting permissions.
Change needed:

  • Edit .github/workflows/validate-action-typings.yml
  • Insert under validate-typings: (after line 11):
    permissions:
      contents: read

No new methods or imports are needed.


Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@RaviKumarGubbala RaviKumarGubbala marked this pull request as ready for review December 11, 2025 09:09
@RaviKumarGubbala RaviKumarGubbala merged commit afcee10 into master Dec 11, 2025
31 checks passed
@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.14%. Comparing base (a2c64ea) to head (347d530).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #20   +/-   ##
=======================================
  Coverage   89.14%   89.14%           
=======================================
  Files          16       16           
  Lines         949      949           
  Branches      200      200           
=======================================
  Hits          846      846           
- Misses         99      103    +4     
+ Partials        4        0    -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants