Improve GitHub Actions workflows security and performance#1977
Merged
Improve GitHub Actions workflows security and performance#1977
Conversation
- Separate Docker build/push into dedicated docker.yml triggered after backend tests pass - Simplify ci-build.yml to PR-only validation (no push triggers) - Migrate ci-site.yml to native ARM64 runners with build matrix and manifest merge - Upgrade actions/checkout to v6 with persist-credentials: false across all workflows - Add explicit permissions (contents: read) to all jobs - Upgrade golangci-lint-action to v9 - Use GHA cache instead of local cache for Docker builds - Add concurrency groups to prevent redundant workflow runs
745a002 to
9730b83
Compare
size-limit report 📦
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1977 +/- ##
==========================================
+ Coverage 62.19% 64.88% +2.69%
==========================================
Files 132 140 +8
Lines 3026 3258 +232
Branches 764 822 +58
==========================================
+ Hits 1882 2114 +232
Misses 1140 1140
Partials 4 4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
docker.ymltriggered after backend tests pass viaworkflow_runci-build.ymlto PR-only validation (removes push triggers, production builds moved to docker.yml)ci-site.ymlto native ARM64 runners with build matrix → manifest merge → deploy patternactions/checkoutto v6 withpersist-credentials: falseacross all workflows for improved securitypermissions: contents: readto all jobs (principle of least privilege)golangci-lint-actionto v9