Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Explicitly grant permissions to updating workflow #1933

Merged
merged 1 commit into from
Jul 13, 2023
Merged

Conversation

akash1810
Copy link
Member

@akash1810 akash1810 commented Jul 12, 2023

What does this change?

The workflow to automatically update AWS CDK libraries is failing, with a lack of permissions:

image

Following a recent GitHub organisational change, we're now required to explicitly list the permissions needed within a workflow.

This workflow runs on the 10th day of every month, bumping the version of AWS CDK libraries being used. It'll create a PR editing the package.json and package-lock.json files, therefore, grant these permissions.

How to test

I've triggered the workflow. It has succeeded, and raised the PR #1934.

How can we measure success?

Our automations start working again.

Have we considered potential risks?

N/A

Checklist

  • I have listed any breaking changes, along with a migration path 1
  • I have updated the documentation as required for the described changes 2

Footnotes

  1. Consider whether this is something that will mean changes to projects that have already been migrated, or to the CDK CLI tool. If changes are required, consider adding a checklist here and/or linking to related PRs.

  2. If you are adding a new construct or pattern, has new documentation been added? If you are amending defaults or changing behaviour, are the existing docs still valid?

Following a recent GitHub organisational change, we're now required to explicitly list the permissions needed within a workflow.

This workflow runs on the 10th day of every month, bumping the version of AWS CDK libraries being used.
It'll create a PR editing the `package.json` and `package-lock.json` files,
therefore, grant these permissions.
@akash1810 akash1810 marked this pull request as ready for review July 12, 2023 14:18
@akash1810 akash1810 requested a review from a team as a code owner July 12, 2023 14:18
@akash1810 akash1810 enabled auto-merge July 12, 2023 14:18
@akash1810 akash1810 merged commit 0e0b667 into main Jul 13, 2023
4 checks passed
@akash1810 akash1810 deleted the aa/fix branch July 13, 2023 07:31
@github-actions
Copy link
Contributor

🎉 This PR is included in version 50.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants