7 Commits

Author SHA1 Message Date
Akash Yadav
aeb8d3a5f0 feat: lint shell scripts with shellcheck + shfmt in CI and pre-commit
ironfox-oss/IronFox!162
Add a blocking `lint` CI stage (runs first, on a lightweight Alpine
image) plus a core.hooksPath pre-commit hook, with scripts/lint.sh as
the shared runner for CI, the hook, and manual use. Checks are
configured in .shellcheckrc and formatting in .editorconfig.

Reformat all scripts with shfmt (2-space indent, switch-case indent,
space redirects) via .editorconfig, so a bare `shfmt` is consistent
everywhere. bootstrap.sh installs shellcheck + shfmt per-OS and
enables the pre-commit hook.

The hook is a convenience (bypassable with --no-verify); the CI
`lint-scripts` job is the enforcement gate. SC2086/SC2046 are
disabled for now as tracked follow-up.

MR-author: Akash Yadav <itsaky01@gmail.com>
Co-authored-by: Akash Yadav <contact@itsaky.com>
Approved-by: celenity <celenity@celenity.dev>
Merged-by: celenity <celenity@celenity.dev>
2026-07-31 02:33:10 +00:00
celenity
177d9135a3 fix-up
Signed-off-by: celenity <celenity@celenity.dev>
2026-07-24 04:10:07 +00:00
celenity
94db696d99 fix: move certain core functions to utilities.sh
Reduces a lot of duplicate logic and adds more validation/verification checks

Signed-off-by: celenity <celenity@celenity.dev>
2026-07-24 03:21:42 +00:00
celenity
31cfc61fa2 feat: Set env vars for additional utilities + do not use the system PATH (in favor of our own custom PATH)
This should improve security (by ensuring we always specify the full paths to executables, and preventing use of unintended/undesired system executables), control (by allowing users to specify where these executables should be located), and consistency/reproducability

Signed-off-by: celenity <celenity@celenity.dev>
2026-07-17 02:46:08 +00:00
celenity
c4650108ac fix: upload artifacts to https://artifacts.ironfoxoss.org/ironfox/ (instead of https://artifacts.ironfoxoss.org/ directly) - in case we need to use this for other projects/repos in the future
Signed-off-by: celenity <celenity@celenity.dev>
2026-07-01 23:58:39 +00:00
celenity
8613014445 fix: typo
Signed-off-by: celenity <celenity@celenity.dev>
2026-07-01 03:05:48 +00:00
celenity
03190893e1 fix: Upload artifacts to S3 storage (instead of GitLab directly) - lets us bypass the size limits and reduces our reliance/dependency on GitLab
Signed-off-by: celenity <celenity@celenity.dev>
2026-06-30 22:44:08 +00:00