Skip to content

Conversation

@AdnaneKhan
Copy link

Scope Down GitHub Token Permissions

This PR updates GitHub Actions workflows to use minimal required permissions instead of the default elevated permissions.

Why This Matters

Following the principle of least privilege, workflows should only have the specific permissions they need to function.

Changes

This PR adds explicit permissions: blocks to workflows that currently rely on default permissions, scoping them down to only what's required for their operations.

Please review the changes to ensure the specified permissions match your workflow requirements.

ashishdhingra and others added 7 commits June 11, 2025 13:45
* update actions to use commit hash (aws#368)

* Update GitHub Actions

* Update GitHub Actions

* ci: add sync master/dev workflow

* Add dependabot configuration (aws#373)

* Add Semgrep security scanning workflow (aws#376)

* Add Semgrep security scanning workflow

* Update semgrep-analysis.yml

* chore: Pinned to v1.6.0 of aws-github-ops/handle-stale-discussions so that closed GitHub discussions are not auto-reopened. (aws#377)

---------

Co-authored-by: Garrett Beatty <gcbeatty@amazon.com>
Co-authored-by: Phil Asmar <phil.asmar@gmail.com>
* Bump tj-actions/changed-files from 45.0.4 to 46.0.5

Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 45.0.4 to 46.0.5.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](tj-actions/changed-files@4edd678...ed68ef8)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-version: 46.0.5
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump actions/checkout from 3 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update dependabot.yml

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sanket T <59204773+sankettangade@users.noreply.github.com>
@AdnaneKhan AdnaneKhan marked this pull request as ready for review October 21, 2025 21:40
@GarrettBeatty GarrettBeatty changed the base branch from master to dev October 23, 2025 01:50
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