trendmicro / cloudone-filestorage-plugins

Trend Micro Cloud One File Storage Security plugins reference code.
https://cloudone.trendmicro.com
Apache License 2.0
42 stars 51 forks source link

fix: Resolve GitHub Actions restriction in workflow #140

Closed trend-ryan-c-wu closed 1 year ago

trend-ryan-c-wu commented 1 year ago

Fix: Resolve Github Action restriction in workflow

Change Summary

I encountered an error (Bad request) in a previous PR that was merged. Upon investigation, I discovered that the error was caused by a restriction on using external actions in the "trendmicro/cloudone-filestorage-plugins" repository.

To address this issue, I reviewed other actions within the Trend Micro organization and found examples that were not restricted, such as scottbrenner/cfn-lint-action@v2. Based on this information, I updated the action version from v35.9.2 to v36 to comply with the error message requirement: svenstaro/upload-release-action@v*, tj-actions/changed-files@v*.

Additionally, I noticed an error occurring when the changed plugin was empty. To resolve this issue, I added an if condition to handle this scenario appropriately.

PR Checklist

Other Notes