Skip to content

Commit 77848ef

Browse files
Review SCM files and security updates (#12)
#Security hardening for RSR Gold compliance: - Pin all 17 workflow files to SHA-pinned GitHub Actions - Fix security-policy.yml: HTTP regex was matching https:// instead of http:// - Add flake.nix as Nix fallback to guix.scm - Fix rand_distr API compatibility for rand 0.9 (Uniform::new returns Result) - Update STATE.scm with current roadmap and session history Actions pinned: - actions/checkout@8e8c483 (v6.0.1) - dtolnay/rust-toolchain@e97e2d8 (v1) - Swatinem/rust-cache@779680d (v2.8.2) - codecov/codecov-action@671740a (v5.5.2) - ossf/scorecard-action@4eaacf0 (v2.4.3) - trufflesecurity/trufflehog@05cccb5 (v3.92.3) - And 10+ more... Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0c61dde commit 77848ef

19 files changed

Lines changed: 2421 additions & 100 deletions

.github/workflows/ethicalcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
sarif-result-file: "ethicalcheck-results.sarif"
6464

6565
- name: Upload sarif file to repository
66-
uses: github/codeql-action/upload-sarif@v4
66+
uses: github/codeql-action/upload-sarif@45c373516f557556c15d420e3f5e0aa3d64366bc # v3.31.9
6767
with:
6868
sarif_file: ./ethicalcheck-results.sarif
6969

.github/workflows/greetings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
issues: write
1010
pull-requests: write
1111
steps:
12-
- uses: actions/first-interaction@v3
12+
- uses: actions/first-interaction@b01f95e46968766d9daee3f385dd7867626ebe67 # v1
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
1515
issue-message: "Message that will be displayed on users' first issue"

.github/workflows/guix-nix-policy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
check:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v6
7+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
88
- name: Enforce Guix primary / Nix fallback
99
run: |
1010
# Check for package manager files

.github/workflows/jekyll-gh-pages.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v6
30+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3131
- name: Setup Pages
32-
uses: actions/configure-pages@v5
32+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
3333
- name: Build with Jekyll
34-
uses: actions/jekyll-build-pages@v1
34+
uses: actions/jekyll-build-pages@44a6e6beabd48582f863aeeb6cb2151cc1716697 # v1.0.13
3535
with:
3636
source: ./
3737
destination: ./_site
3838
- name: Upload artifact
39-
uses: actions/upload-pages-artifact@v4
39+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4
4040

4141
# Deployment job
4242
deploy:
@@ -48,4 +48,4 @@ jobs:
4848
steps:
4949
- name: Deploy to GitHub Pages
5050
id: deployment
51-
uses: actions/deploy-pages@v4
51+
uses: actions/deploy-pages@f33f41b675f0ab2dc5a6863c9a170fe83af3571e # v4

.github/workflows/label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
pull-requests: write
1818

1919
steps:
20-
- uses: actions/labeler@v6
20+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
2121
with:
2222
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/language-policy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
check:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v6
7+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
88
- name: Enforce language policies
99
run: |
1010
# Block new Python files (except SaltStack)

.github/workflows/quality.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,44 @@ jobs:
55
lint:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v6
9-
8+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
9+
1010
- name: Check file permissions
1111
run: |
1212
find . -type f -perm /111 -name "*.sh" | head -10 || true
13-
13+
1414
- name: Check for secrets
15-
uses: trufflesecurity/trufflehog@main
15+
uses: trufflesecurity/trufflehog@05cccb53bc9e13bc6d17997db5a6bcc3df44bf2f # v3.92.3
1616
with:
1717
path: ./
1818
base: ${{ github.event.pull_request.base.sha || github.event.before }}
1919
head: ${{ github.sha }}
2020
continue-on-error: true
21-
21+
2222
- name: Check TODO/FIXME
2323
run: |
2424
echo "=== TODOs ==="
2525
grep -rn "TODO\|FIXME\|HACK\|XXX" --include="*.rs" --include="*.res" --include="*.py" --include="*.ex" . | head -20 || echo "None found"
26-
26+
2727
- name: Check for large files
2828
run: |
2929
find . -type f -size +1M -not -path "./.git/*" | head -10 || echo "No large files"
30-
30+
3131
- name: EditorConfig check
32-
uses: editorconfig-checker/action-editorconfig-checker@main
32+
uses: editorconfig-checker/action-editorconfig-checker@4b6cd6190d435e7e084fb35e36a096e98506f7b9 # v2.1.0
3333
continue-on-error: true
3434

3535
docs:
3636
runs-on: ubuntu-latest
3737
steps:
38-
- uses: actions/checkout@v6
38+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3939
- name: Check documentation
4040
run: |
4141
MISSING=""
4242
[ ! -f "README.md" ] && [ ! -f "README.adoc" ] && MISSING="$MISSING README"
4343
[ ! -f "LICENSE" ] && [ ! -f "LICENSE.txt" ] && [ ! -f "LICENSE.md" ] && MISSING="$MISSING LICENSE"
4444
[ ! -f "CONTRIBUTING.md" ] && [ ! -f "CONTRIBUTING.adoc" ] && MISSING="$MISSING CONTRIBUTING"
45-
45+
4646
if [ -n "$MISSING" ]; then
4747
echo "::warning::Missing docs:$MISSING"
4848
else

.github/workflows/rsr-antipattern.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
antipattern-check:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2020

2121
- name: Check for TypeScript
2222
run: |

.github/workflows/rust-ci.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,32 @@ jobs:
88
test:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v6
12-
- uses: dtolnay/rust-toolchain@stable
11+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
12+
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
1313
with:
14+
toolchain: stable
1415
components: rustfmt, clippy
15-
- uses: Swatinem/rust-cache@v2
16-
16+
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
17+
1718
- name: Check formatting
1819
run: cargo fmt --all -- --check
19-
20+
2021
- name: Clippy lints
2122
run: cargo clippy --all-targets --all-features -- -D warnings
22-
23+
2324
- name: Run tests
2425
run: cargo test --all-features
25-
26+
2627
- name: Build release
2728
run: cargo build --release
2829

2930
security:
3031
runs-on: ubuntu-latest
3132
steps:
32-
- uses: actions/checkout@v6
33-
- uses: dtolnay/rust-toolchain@stable
33+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
34+
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
35+
with:
36+
toolchain: stable
3437
- name: Install cargo-audit
3538
run: cargo install cargo-audit
3639
- name: Security audit
@@ -41,12 +44,14 @@ jobs:
4144
coverage:
4245
runs-on: ubuntu-latest
4346
steps:
44-
- uses: actions/checkout@v6
45-
- uses: dtolnay/rust-toolchain@stable
47+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
48+
- uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
49+
with:
50+
toolchain: stable
4651
- name: Install tarpaulin
4752
run: cargo install cargo-tarpaulin
4853
- name: Generate coverage
4954
run: cargo tarpaulin --out Xml
50-
- uses: codecov/codecov-action@v5
55+
- uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
5156
with:
5257
files: cobertura.xml

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v6
18+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1919
- name: Build
2020
run: cargo build --verbose
2121
- name: Run tests

0 commit comments

Comments
 (0)