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

feat: workflow to update actions dist #3653

Merged
merged 7 commits into from
May 16, 2024

Conversation

ramonpetgrave64
Copy link
Collaborator

@ramonpetgrave64 ramonpetgrave64 commented May 15, 2024

Summary

Similar to slsa-verifier's slsa-framework/slsa-verifier#760

This PR adds a manually-invoked workflow to run against renovate-bot's PRs to update the node dist folders.

I made one small change to use the ${{ inputs.pr_number }} as an environment variable, to harden against script injection. See also slsa-framework/slsa-verifier#771

Also updating shellckeck to fix this lint error:

Error: input type of workflow_dispatch event must be one of "string", "boolean", "choice", "environment" but got "number"

Testing Process

I ran this against my fork's version of PR #3649. It did update the dist folders and the check-dists checks pass

Checklist

  • Review the contributing guidelines
  • Add a reference to related issues in the PR description.
  • Update documentation if applicable.
  • Add unit tests if applicable.
  • Add changes to the CHANGELOG if applicable.

Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
@ramonpetgrave64 ramonpetgrave64 marked this pull request as ready for review May 15, 2024 19:37
@ramonpetgrave64
Copy link
Collaborator Author

@ianlewis

Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
@@ -97,8 +97,8 @@ jobs:

- name: actionlint
env:
ACTIONLINT_VERSION: "1.6.24"
ACTIONLINT_CHECKSUM: "3c5818744143a5d6754edd3dcc4c2b32c9dfcdd3bb30e0e108fb5e5c505262d4"
ACTIONLINT_VERSION: "1.7.0"
Copy link
Member

@ianlewis ianlewis May 15, 2024

Choose a reason for hiding this comment

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

Nice. 1.7.0 has initial support for GitHub actions actions.yml and not just workflows.
https://github.com/rhysd/actionlint/releases/tag/v1.7.0

permissions: {}

on:
workflow_dispatch:
Copy link
Member

Choose a reason for hiding this comment

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

nit: I think we typically have 2 space indentation for the yaml files though it looks like the linter doesn't currently enforce it.

@ianlewis ianlewis merged commit 75daab2 into slsa-framework:main May 16, 2024
75 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