Skip to content

Commit 9c2895b

Browse files
fix: address OpenSSF Scorecard findings (3.8→target 7+)
Scorecard fixes: - Pin all GitHub Actions by SHA hash (actions/checkout, setup-python) - Pin all Docker base images by SHA256 digest (19 Dockerfiles) - Add CodeQL SAST workflow (Python + JavaScript analysis) - Add Dependabot config for pip, npm, and github-actions - Add PyPI publishing workflow for packaging score - Remove gradle-wrapper.jar binary artifact - Bump vulnerable deps: cryptography>=44, aiohttp>=3.11, fastapi>=0.115, httpx>=0.27, uvicorn>=0.27 - Remove stale package-lock.json files with known vulns Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 14554e3 commit 9c2895b

File tree

40 files changed

+198
-30734
lines changed

40 files changed

+198
-30734
lines changed

.github/dependabot.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/packages/agent-os"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 5
8+
labels:
9+
- "dependencies"
10+
11+
- package-ecosystem: "pip"
12+
directory: "/packages/agent-mesh"
13+
schedule:
14+
interval: "weekly"
15+
open-pull-requests-limit: 5
16+
labels:
17+
- "dependencies"
18+
19+
- package-ecosystem: "pip"
20+
directory: "/packages/agent-hypervisor"
21+
schedule:
22+
interval: "weekly"
23+
open-pull-requests-limit: 5
24+
labels:
25+
- "dependencies"
26+
27+
- package-ecosystem: "pip"
28+
directory: "/packages/agent-sre"
29+
schedule:
30+
interval: "weekly"
31+
open-pull-requests-limit: 5
32+
labels:
33+
- "dependencies"
34+
35+
- package-ecosystem: "pip"
36+
directory: "/packages/agent-compliance"
37+
schedule:
38+
interval: "weekly"
39+
open-pull-requests-limit: 5
40+
labels:
41+
- "dependencies"
42+
43+
- package-ecosystem: "npm"
44+
directory: "/packages/agent-os/extensions/mcp-server"
45+
schedule:
46+
interval: "weekly"
47+
open-pull-requests-limit: 5
48+
labels:
49+
- "dependencies"
50+
51+
- package-ecosystem: "npm"
52+
directory: "/packages/agent-os/extensions/copilot"
53+
schedule:
54+
interval: "weekly"
55+
open-pull-requests-limit: 5
56+
labels:
57+
- "dependencies"
58+
59+
- package-ecosystem: "github-actions"
60+
directory: "/"
61+
schedule:
62+
interval: "weekly"
63+
open-pull-requests-limit: 5
64+
labels:
65+
- "dependencies"

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
matrix:
1717
package: [agent-os, agent-mesh, agent-hypervisor, agent-sre, agent-compliance]
1818
steps:
19-
- uses: actions/checkout@v4
20-
- uses: actions/setup-python@v5
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2121
with:
2222
python-version: "3.11"
2323
- name: Install ruff
@@ -39,8 +39,8 @@ jobs:
3939
- package: agent-sre
4040
python-version: "3.10"
4141
steps:
42-
- uses: actions/checkout@v4
43-
- uses: actions/setup-python@v5
42+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
43+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
4444
with:
4545
python-version: ${{ matrix.python-version }}
4646
- name: Install ${{ matrix.package }}
@@ -55,8 +55,8 @@ jobs:
5555
security:
5656
runs-on: ubuntu-latest
5757
steps:
58-
- uses: actions/checkout@v4
59-
- uses: actions/setup-python@v5
58+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
59+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
6060
with:
6161
python-version: "3.11"
6262
- name: Install safety

.github/workflows/codeql.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: "30 6 * * 1"
10+
11+
permissions:
12+
contents: read
13+
security-events: write
14+
15+
jobs:
16+
analyze:
17+
name: Analyze
18+
runs-on: ubuntu-latest
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
language: [python, javascript]
23+
steps:
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
26+
- uses: github/codeql-action/init@v3
27+
with:
28+
languages: ${{ matrix.language }}
29+
30+
- uses: github/codeql-action/autobuild@v3
31+
32+
- uses: github/codeql-action/analyze@v3
33+
with:
34+
category: "/language:${{ matrix.language }}"

.github/workflows/publish.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Publish Packages
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
package:
9+
description: "Package to publish"
10+
required: true
11+
type: choice
12+
options:
13+
- agent-os
14+
- agent-mesh
15+
- agent-hypervisor
16+
- agent-sre
17+
- agent-compliance
18+
- all
19+
20+
permissions:
21+
contents: read
22+
id-token: write
23+
24+
jobs:
25+
publish:
26+
runs-on: ubuntu-latest
27+
strategy:
28+
matrix:
29+
package: [agent-os, agent-mesh, agent-hypervisor, agent-sre, agent-compliance]
30+
steps:
31+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
32+
33+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
34+
with:
35+
python-version: "3.11"
36+
37+
- name: Install build tools
38+
run: pip install build twine
39+
40+
- name: Build ${{ matrix.package }}
41+
working-directory: packages/${{ matrix.package }}
42+
run: python -m build
43+
44+
- name: Publish ${{ matrix.package }} to PyPI
45+
working-directory: packages/${{ matrix.package }}
46+
env:
47+
TWINE_USERNAME: __token__
48+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
49+
run: twine upload dist/* --skip-existing

packages/agent-hypervisor/examples/docker-compose/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12-slim
1+
FROM python:3.12-slim@sha256:d51616d5860ba60aa1786987d93b6aaebc05dd70f59f4cc36b008e9768cb88f1
22

33
WORKDIR /app
44

packages/agent-hypervisor/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ nexus = [
4242
"structlog>=24.1.0",
4343
]
4444
api = [
45-
"fastapi>=0.109.0",
45+
"fastapi>=0.115.0",
4646
"uvicorn>=0.27.0",
4747
]
4848
full = [

packages/agent-mesh/examples/docker-compose/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Lightweight Python image for the AgentMesh example server and agent sidecars.
22
# In production, use the root-level Dockerfile.server and Dockerfile.sidecar instead.
33

4-
FROM python:3.11-slim
4+
FROM python:3.11-slim@sha256:4057d02a202f69bfbfe10f65300519f612eb00fc595b8499f77d3cfe5b1b9fd4
55

66
RUN apt-get update && apt-get install -y --no-install-recommends curl \
77
&& rm -rf /var/lib/apt/lists/*

packages/agent-mesh/packages/langchain-agentmesh/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ classifiers = [
3636
]
3737
dependencies = [
3838
"langchain-core>=0.1.0",
39-
"cryptography>=41.0.0",
39+
"cryptography>=44.0.0",
4040
]
4141

4242
[project.optional-dependencies]

0 commit comments

Comments
 (0)