β‘ Implement error handling & π Restrict workflow permissions #137
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
β‘ Implement error handling for tag extraction to manage failures effectively
Add error handling for the step where the latest tag is extracted to ensure the workflow handles potential failures gracefully.
Why: Implementing error handling for tag extraction is crucial for managing potential failures effectively, ensuring the workflow does not proceed with incorrect or missing data.
π Restrict workflow permissions to adhere to the principle of least privilege
It's recommended to specify the permissions more granarily to follow the principle of least privilege. Currently, the workflow has broad write permissions to repository contents, which might not be necessary for all steps.
Why: This suggestion improves security by adhering to the principle of least privilege, reducing the risk of unintended actions by limiting permissions to what is necessary.
π§ͺ Ensure the workflow condition accurately checks for successful workflow completion
To ensure that the workflow only triggers on successful completion of the 'Release' workflow, add a condition to check the conclusion of the workflow_run.
Why: This suggestion enhances the accuracy of the workflow trigger condition, ensuring it only runs when the 'Release' workflow completes successfully, which is a best practice.
π§ͺ Pin GitHub Actions to a specific commit SHA to ensure stability
Consider pinning the action ncipollo/release-action@v1 to a specific commit SHA to avoid potential issues from automatic updates that could break your workflow.
Why: Pinning actions to a specific commit SHA ensures stability and prevents unexpected issues from automatic updates, which is a good practice for maintaining workflow reliability.