fix(security): SHA-pinna actions, min-release-age och Renovate minimumReleaseAge (Semgrep p/ci) #37
+13
-9
@@ -13,11 +13,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
||||
with:
|
||||
node-version: "22"
|
||||
- uses: pnpm/action-setup@v4
|
||||
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
|
||||
with:
|
||||
version: 9.15.9
|
||||
- name: Install
|
||||
@@ -34,20 +34,24 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- name: Install Trivy
|
||||
run: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
|
||||
run: |
|
||||
# Pinned + checksum-verified instead of `curl ... | sh` (Semgrep gha-curl-pipe-shell)
|
||||
curl -sSfL -o /tmp/trivy.tar.gz "https://github.com/aquasecurity/trivy/releases/download/v0.76.2/trivy_0.76.2_Linux-64bit.tar.gz"
|
||||
echo "bc0fc726e017b8927a62b2d3531d7a84ee01769daf5c99ed866dced54089fdbf /tmp/trivy.tar.gz" | sha256sum -c -
|
||||
tar -xzf /tmp/trivy.tar.gz -C /usr/local/bin trivy
|
||||
- name: Scan
|
||||
run: trivy fs --scanners vuln,secret --severity HIGH,CRITICAL --exit-code 0 .
|
||||
contracts:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
||||
with:
|
||||
node-version: "22"
|
||||
- uses: pnpm/action-setup@v4
|
||||
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
|
||||
with:
|
||||
version: 9.15.9
|
||||
- name: Install
|
||||
@@ -65,7 +69,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: SonarQube analysis (self-hosted sonar.siax.io)
|
||||
|
||||
@@ -10,5 +10,5 @@ jobs:
|
||||
lock:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- run: echo "masterplan lock placeholder"
|
||||
|
||||
@@ -2,3 +2,5 @@
|
||||
//git.siax.io/api/packages/siax/npm/:_authToken=${NODE_AUTH_TOKEN}
|
||||
engine-strict=true
|
||||
fund=false
|
||||
# Supply-chain: wait 7 days before resolving newly published versions (Semgrep p/ci; npm 11.10+).
|
||||
min-release-age=7
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
packages:
|
||||
- 'apps/*'
|
||||
- 'packages/*'
|
||||
|
||||
# Supply-chain hardening (Semgrep p/ci blocking rules): 7 days wait, no downgrade of trust, no exotic sub-dependencies
|
||||
minimumReleaseAge: 10080
|
||||
trustPolicy: no-downgrade
|
||||
blockExoticSubdeps: true
|
||||
|
||||
+35
-1
@@ -1 +1,35 @@
|
||||
{"$schema": "https://github.com/renovatebot/renovate-config/blob/master/renovate-schema.json", "extends": ["config:recommended"], "packageRules": [{"matchPackagePatterns": ["^@siax/"], "rangeStrategy": "bump"}, {"matchPackagePatterns": ["typescript"], "rangeStrategy": "bump"}, {"matchPackagePatterns": ["node"], "rangeStrategy": "update"}], "vulnerabilityReport": {"enabled": true}, "schedule": ["before 3am on Saturday"]}
|
||||
{
|
||||
"$schema": "https://github.com/renovatebot/renovate-config/blob/master/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:recommended"
|
||||
],
|
||||
"packageRules": [
|
||||
{
|
||||
"matchPackagePatterns": [
|
||||
"^@siax/"
|
||||
],
|
||||
"rangeStrategy": "bump",
|
||||
"minimumReleaseAge": "7 days"
|
||||
},
|
||||
{
|
||||
"matchPackagePatterns": [
|
||||
"typescript"
|
||||
],
|
||||
"rangeStrategy": "bump",
|
||||
"minimumReleaseAge": "7 days"
|
||||
},
|
||||
{
|
||||
"matchPackagePatterns": [
|
||||
"node"
|
||||
],
|
||||
"rangeStrategy": "update",
|
||||
"minimumReleaseAge": "7 days"
|
||||
}
|
||||
],
|
||||
"vulnerabilityReport": {
|
||||
"enabled": true
|
||||
},
|
||||
"schedule": [
|
||||
"before 3am on Saturday"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user