Skip to content

feat: workflow to update actions dist#3653

Merged
ianlewis merged 7 commits intoslsa-framework:mainfrom
ramonpetgrave64:update-dists
May 16, 2024
Merged

feat: workflow to update actions dist#3653
ianlewis merged 7 commits intoslsa-framework:mainfrom
ramonpetgrave64:update-dists

Conversation

@ramonpetgrave64
Copy link
Contributor

@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 <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
@ramonpetgrave64 ramonpetgrave64 marked this pull request as ready for review May 15, 2024 19:37
@ramonpetgrave64
Copy link
Contributor Author

@ianlewis

Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
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
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