Skip to content

ci: set read-only workflow token permissions - #1054

Merged
kailash-b merged 1 commit into
auth0:masterfrom
Alb3e3:alb3e3/ci-readonly-token-permissions
Aug 25, 2026
Merged

kailash-b merged 1 commit into
auth0:masterfrom
Alb3e3:alb3e3/ci-readonly-token-permissions

Conversation

@Alb3e3

@Alb3e3 Alb3e3 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • set explicit read-only GITHUB_TOKEN permissions for CI workflows that only need repository checkout/read access
  • leave release/deploy/write-capable workflows unchanged

Why

This follows GitHub Actions least-privilege guidance and reduces the default token scope available to routine CI jobs without changing the test/build commands.

Verification

  • Parsed the changed workflow YAML with PyYAML.
  • Ran git diff --check.

@Alb3e3
Alb3e3 requested a review from a team as a code owner July 14, 2026 22:28
@kailash-b
kailash-b force-pushed the alb3e3/ci-readonly-token-permissions branch 2 times, most recently from 2f8d207 to e676b9d Compare July 17, 2026 07:42
@codecov

codecov Bot commented Jul 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.21%. Comparing base (682ea3b) to head (e6b1562).
⚠️ Report is 1 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (682ea3b) and HEAD (e6b1562). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (682ea3b) HEAD (e6b1562)
authIntTests 1 0
mgmtIntTests 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1054       +/-   ##
===========================================
- Coverage   25.86%    0.21%   -25.65%     
===========================================
  Files        3226     3208       -18     
  Lines      152088   151960      -128     
  Branches    10282    10273        -9     
===========================================
- Hits        39337      330    -39007     
- Misses     110358   151621    +41263     
+ Partials     2393        9     -2384     
Flag Coverage Δ
authIntTests ?
mgmtIntTests ?
unittests 0.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

@Alb3e3
Alb3e3 force-pushed the alb3e3/ci-readonly-token-permissions branch from e676b9d to 1845ac9 Compare August 13, 2026 17:05
@Alb3e3
Alb3e3 force-pushed the alb3e3/ci-readonly-token-permissions branch from 1845ac9 to 12034b1 Compare August 21, 2026 13:13
@Alb3e3

Alb3e3 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

@kailash-b Friendly ping — this has been approved since 2026-07-17 and all checks (Snyk security + license) are green. It only adds permissions: blocks to restrict the default GITHUB_TOKEN scope in the workflows; no build or runtime changes.

Is there anything blocking the merge on your side?

@kailash-b

Copy link
Copy Markdown
Contributor

Hi @Alb3e3 !

We are good to merge this. Can you ensure the commits are signed?
That is the only thing blocking us from merging this change.

@Alb3e3
Alb3e3 force-pushed the alb3e3/ci-readonly-token-permissions branch from 12034b1 to e6b1562 Compare August 24, 2026 19:54
@Alb3e3

Alb3e3 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Done — force-pushed e6b15626, signed with the same SSH signing key used on auth0-spa-js#1681. GitHub now reports the commit as Verified:

sha=e6b15626  verified=true  reason=valid

The tree is byte-identical to 12034b11; the only change is the signature. Should be good to merge whenever you are.

@kailash-b
kailash-b enabled auto-merge (squash) August 25, 2026 03:22
@kailash-b
kailash-b merged commit e973e2f into auth0:master Aug 25, 2026
2 of 3 checks passed
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