Skip to content

ci: scope down GitHub Token permissions#726

Merged
atennak1 merged 3 commits intoaws-cloudformation:mainfrom
AdnaneKhan:update/scopedown-token
Jan 30, 2026
Merged

ci: scope down GitHub Token permissions#726
atennak1 merged 3 commits intoaws-cloudformation:mainfrom
AdnaneKhan:update/scopedown-token

Conversation

@AdnaneKhan
Copy link
Copy Markdown
Contributor

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.

@AdnaneKhan AdnaneKhan marked this pull request as ready for review October 21, 2025 21:54
@atennak1 atennak1 merged commit 9686b42 into aws-cloudformation:main Jan 30, 2026
1 check passed
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Feb 23, 2026
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [github:aws-cloudformation/rain](https://github.com/aws-cloudformation/rain) | patch | `1.24.2` → `1.24.3` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>aws-cloudformation/rain (github:aws-cloudformation/rain)</summary>

### [`v1.24.3`](https://github.com/aws-cloudformation/rain/releases/tag/v1.24.3)

[Compare Source](aws-cloudformation/rain@v1.24.2...v1.24.3)

#### What's Changed

- feat: Support environment variables for parameters and deploys in `rain deploy` by [@&#8203;rtkjbeverly](https://github.com/rtkjbeverly) in [#&#8203;729](aws-cloudformation/rain#729)
- Fix linting issue: merge variable declaration with assignment (S1021) by [@&#8203;atennak1](https://github.com/atennak1) in [#&#8203;753](aws-cloudformation/rain#753)
- ci: scope down GitHub Token permissions by [@&#8203;AdnaneKhan](https://github.com/AdnaneKhan) in [#&#8203;726](aws-cloudformation/rain#726)
- Bump github.com/aws/aws-sdk-go-v2/service/dynamodb from 1.53.1 to 1.55.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;755](aws-cloudformation/rain#755)
- Bump github.com/aws/aws-sdk-go-v2/service/cloudformation from 1.71.0 to 1.71.5 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;756](aws-cloudformation/rain#756)
- Bump github.com/aws/aws-sdk-go-v2/service/servicequotas from 1.33.8 to 1.34.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;758](aws-cloudformation/rain#758)
- Bump github.com/aws/aws-sdk-go-v2/service/cloudfront from 1.57.0 to 1.60.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;759](aws-cloudformation/rain#759)
- Bump github.com/aws/aws-sdk-go-v2/service/lightsail from 1.50.7 to 1.50.11 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;757](aws-cloudformation/rain#757)
- Release v1.24.3 by [@&#8203;kddejong](https://github.com/kddejong) in [#&#8203;760](aws-cloudformation/rain#760)

#### New Contributors

- [@&#8203;rtkjbeverly](https://github.com/rtkjbeverly) made their first contribution in [#&#8203;729](aws-cloudformation/rain#729)
- [@&#8203;atennak1](https://github.com/atennak1) made their first contribution in [#&#8203;753](aws-cloudformation/rain#753)
- [@&#8203;AdnaneKhan](https://github.com/AdnaneKhan) made their first contribution in [#&#8203;726](aws-cloudformation/rain#726)

**Full Changelog**: <aws-cloudformation/rain@v1.24.2...v1.24.3>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNi40IiwidXBkYXRlZEluVmVyIjoiNDMuMjYuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90IiwiYXV0b21hdGlvbjpib3QtYXV0aG9yZWQiLCJkZXBlbmRlbmN5LXR5cGU6OnBhdGNoIl19-->
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Feb 23, 2026
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [aws-cloudformation/rain](https://github.com/aws-cloudformation/rain) | patch | `v1.24.2` → `v1.24.3` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>aws-cloudformation/rain (aws-cloudformation/rain)</summary>

### [`v1.24.3`](https://github.com/aws-cloudformation/rain/releases/tag/v1.24.3)

[Compare Source](aws-cloudformation/rain@v1.24.2...v1.24.3)

#### What's Changed

- feat: Support environment variables for parameters and deploys in `rain deploy` by [@&#8203;rtkjbeverly](https://github.com/rtkjbeverly) in [#&#8203;729](aws-cloudformation/rain#729)
- Fix linting issue: merge variable declaration with assignment (S1021) by [@&#8203;atennak1](https://github.com/atennak1) in [#&#8203;753](aws-cloudformation/rain#753)
- ci: scope down GitHub Token permissions by [@&#8203;AdnaneKhan](https://github.com/AdnaneKhan) in [#&#8203;726](aws-cloudformation/rain#726)
- Bump github.com/aws/aws-sdk-go-v2/service/dynamodb from 1.53.1 to 1.55.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;755](aws-cloudformation/rain#755)
- Bump github.com/aws/aws-sdk-go-v2/service/cloudformation from 1.71.0 to 1.71.5 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;756](aws-cloudformation/rain#756)
- Bump github.com/aws/aws-sdk-go-v2/service/servicequotas from 1.33.8 to 1.34.1 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;758](aws-cloudformation/rain#758)
- Bump github.com/aws/aws-sdk-go-v2/service/cloudfront from 1.57.0 to 1.60.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;759](aws-cloudformation/rain#759)
- Bump github.com/aws/aws-sdk-go-v2/service/lightsail from 1.50.7 to 1.50.11 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;757](aws-cloudformation/rain#757)
- Release v1.24.3 by [@&#8203;kddejong](https://github.com/kddejong) in [#&#8203;760](aws-cloudformation/rain#760)

#### New Contributors

- [@&#8203;rtkjbeverly](https://github.com/rtkjbeverly) made their first contribution in [#&#8203;729](aws-cloudformation/rain#729)
- [@&#8203;atennak1](https://github.com/atennak1) made their first contribution in [#&#8203;753](aws-cloudformation/rain#753)
- [@&#8203;AdnaneKhan](https://github.com/AdnaneKhan) made their first contribution in [#&#8203;726](aws-cloudformation/rain#726)

**Full Changelog**: <aws-cloudformation/rain@v1.24.2...v1.24.3>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNi40IiwidXBkYXRlZEluVmVyIjoiNDMuMjYuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90IiwiYXV0b21hdGlvbjpib3QtYXV0aG9yZWQiLCJkZXBlbmRlbmN5LXR5cGU6OnBhdGNoIl19-->
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