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

Define permissions in workflows and update actions #531

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

joshmgross
Copy link
Member

I noticed that Dependabot triggered workflows were failing due to permissions not being defined (Dependabot defaults to read only permissions if none are defined) - #523

This PR defines permissions for every workflow, updates action references, and removes the unused stale workflow which I disabled a long time ago.

@joshmgross joshmgross requested a review from a team as a code owner January 28, 2025 21:52
@joshmgross joshmgross temporarily deployed to debug-integration-test January 28, 2025 21:52 — with GitHub Actions Inactive
Copy link

Hello from actions/github-script! (e4e4c24)

@@ -3,7 +3,7 @@ description: 'Set up node and install dependencies'
runs:
using: 'composite'
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed Dependabot missed this one. I can't recall if there was an issue with nested actions before, but did you want a PR to add the extra job?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that something we can configure with Dependabot or a feature gap?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I tried it before with a different directory value, but I don't remember if there was an issue https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot#enabling-dependabot-version-updates-for-actions.
I'll send something over, but don't hold this up on my part. I think you'll see it in the Insights>Dependancies tab after if it "works"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #532

@@ -17,4 +17,4 @@ jobs:
uses: actions/checkout@v4
- name: Publish
id: publish
uses: actions/[email protected].3
uses: actions/[email protected].4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo in the current string that Dependabot fixed in its PR

Suggested change
uses: actions/publish-immutable-action@0.0.4
uses: actions/publish-immutable-action@v0.0.4

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually a feature of immutable actions, it will be available more broadly soon - github/roadmap#592

With semantic versioning of actions, the v is optional.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, just noticed because VSCode also complains about the missing v, since it tries to resolve a tag that doesn't exist (without the v)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I'll pass that along to the team

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi

@joshmgross joshmgross merged commit 08caadd into main Jan 29, 2025
14 checks passed
@joshmgross joshmgross deleted the joshmgross/update-workflows branch January 29, 2025 16:20
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