Skip to content

Commit 48e4118

Browse files
fix: harden GitHub Actions against command injection and audit failures
Mitigate command injection vulnerabilities by mapping untrusted GitHub context variables to environment variables. Standardize workflows by adding missing job timeouts and specifying explicit shell execution. Address repository audit failures including placeholder names, missing H1 headers, unpinned action versions, and broken documentation links. Signed-off-by: Jules Agent <jules@example.com> Co-authored-by: christopherfoxjr <213370400+christopherfoxjr@users.noreply.github.com>
1 parent 4005932 commit 48e4118

57 files changed

Lines changed: 83 additions & 675 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Jules/sentinel.md

Lines changed: 2 additions & 0 deletions

.github/workflows/audit-action-pinning.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
audit-pinning:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1616
- name: Check
1717
run: grep "uses: actions/" .github/workflows/*.yml | grep -v "@v" || echo "Pinned"

.github/workflows/audit-breezerc-opacity-percentage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 5
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2020
- name: Check Opacity Range
2121
run: |
2222
OPACITIES=$(grep -oP 'BackgroundOpacity=\K[0-9]+' .github/workflows/kiba.yml)

.github/workflows/audit-build-reproducibility.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
audit-repro:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1616
- name: Scan
1717
run: grep -E "date|random" .github/workflows/kiba.yml || echo "Clean"

.github/workflows/audit-calamares-branding-desc-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 5
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2020
- name: Validate Branding Desc
2121
run: |
2222
sed -n "/cat > config\/includes\.chroot\/etc\/calamares\/branding\/kibaos\/branding\.desc << 'BRANDING'/,/BRANDING/p" .github/workflows/kiba.yml | grep -v "BRANDING" > branding.desc

.github/workflows/audit-calamares-branding-integrity.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 10
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1717
- name: Validate Product Name
1818
run: |
1919
grep "productName: \"KibaOS\"" .github/workflows/kiba.yml

.github/workflows/audit-calamares-module-yaml-syntax.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 10
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2020
- name: Validate Module YAML
2121
run: |
2222
grep -oP "cat > /etc/calamares/modules/\K[^ ]+\.conf" .github/workflows/kiba.yml | while read -r conf; do

.github/workflows/audit-desktop-ux-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
audit-ux:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1616
- name: Check Palette and Fonts
1717
run: |
1818
grep "#bd93f9" .github/workflows/kiba.yml

.github/workflows/audit-dracula-palette-consistency.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 10
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1717
- name: Verify Hex Codes
1818
run: |
1919
grep -oE "#[0-9a-fA-F]{6}" .github/workflows/kiba.yml | sort -u

.github/workflows/audit-embedded-chromium-json.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 5
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2020
- name: Validate Chromium JSON
2121
run: |
2222
sed -n "/cat > \/etc\/chromium\/policies\/managed\/kibaos\.json << 'CPOLICY'/,/CPOLICY/p" .github/workflows/kiba.yml | grep -v "CPOLICY" > policy.json

0 commit comments

Comments
 (0)