Skip to content

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

ci: harden release supply chain

Shaan Majid5b168c7382c6
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 65091b31..58f5ba43 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -13,3 +13,10 @@ updates:
interval: weekly
cooldown:
default-days: 7
+
+ - package-ecosystem: gomod
+ directory: /mcp
+ schedule:
+ interval: weekly
+ cooldown:
+ default-days: 7
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f17377a4..5eafc3e3 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -5,10 +5,7 @@ on:
tags:
- "v*"
-permissions:
- contents: write
- id-token: write
- attestations: write
+permissions: {}
jobs:
@@ -18,7 +15,7 @@ jobs:
build-skill:
runs-on: ubuntu-latest
permissions:
- contents: write
+ contents: read
id-token: write
attestations: write
steps:
@@ -34,12 +31,12 @@ jobs:
test -f dist/last30days.skill
- name: Attest .skill artifact provenance
- uses: actions/attest-build-provenance@v4
+ uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4.1.0
with:
subject-path: dist/last30days.skill
- name: Upload skill artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: last30days-skill
path: dist/last30days.skill
@@ -49,6 +46,13 @@ jobs:
# zip layout; we only supply the pre-built binary via --skip-build.
build-mcpb:
runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ id-token: write
+ attestations: write
+ env:
+ MCPB_OUTPUT: mcp/build/last30days-pp-mcp-${{ matrix.goos }}-${{ matrix.goarch }}.mcpb
+ MCPB_PLATFORM: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
@@ -69,9 +73,10 @@ jobs:
persist-credentials: false
- name: Set up Go
- uses: actions/setup-go@v5
+ uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
- go-version: stable
+ go-version-file: mcp/go.mod
+ cache: false
- name: Install printing-press
# Pin to a known-good PP release so the bundle command's behavior
@@ -92,10 +97,11 @@ jobs:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: "0"
+ RELEASE_VERSION: ${{ github.ref_name }}
run: |
mkdir -p mcp/build
go -C mcp build \
- -ldflags "-X main.Version=${{ github.ref_name }}" \
+ -ldflags "-X main.Version=${RELEASE_VERSION}" \
-o build/last30days-pp-mcp \
./cmd/last30days-pp-mcp
@@ -108,24 +114,30 @@ jobs:
printing-press bundle mcp \
--skip-build \
--binary mcp/build/last30days-pp-mcp \
- --platform ${{ matrix.platform }} \
- --output mcp/build/last30days-pp-mcp-${{ matrix.goos }}-${{ matrix.goarch }}.mcpb
+ --platform "${MCPB_PLATFORM}" \
+ --output "${MCPB_OUTPUT}"
+
+ - name: Attest .mcpb artifact provenance
+ uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4.1.0
+ with:
+ subject-path: ${{ env.MCPB_OUTPUT }}
- name: Upload .mcpb artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: mcpb-${{ matrix.goos }}-${{ matrix.goarch }}
- path: mcp/build/last30days-pp-mcp-${{ matrix.goos }}-${{ matrix.goarch }}.mcpb
+ path: ${{ env.MCPB_OUTPUT }}
# Gather every platform artifact and attach to one GitHub release.
release:
needs: [build-skill, build-mcpb]
runs-on: ubuntu-latest
permissions:
+ actions: read
contents: write
steps:
- name: Download all artifacts
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
path: dist
merge-multiple: true
@@ -133,8 +145,9 @@ jobs:
- name: Create GitHub release
env:
GH_TOKEN: ${{ github.token }}
+ RELEASE_TAG: ${{ github.ref_name }}
run: |
- gh release create "${GITHUB_REF_NAME}" \
+ gh release create "${RELEASE_TAG}" \
dist/last30days.skill \
dist/last30days-pp-mcp-*.mcpb \
--generate-notes \
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index 17e55c9b..1be0bc1f 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -46,7 +46,7 @@ jobs:
persist-credentials: false
- name: Run OpenSSF Scorecard
- uses: ossf/[email protected]
+ uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
with:
results_file: scorecard.sarif
results_format: sarif
@@ -57,13 +57,13 @@ jobs:
# Retain the raw SARIF as a build artifact for offline inspection.
- name: Upload artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: scorecard-sarif
path: scorecard.sarif
retention-days: 5
- name: Upload SARIF to code-scanning
- uses: github/codeql-action/upload-sarif@v4
+ uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
sarif_file: scorecard.sarif