Bumps the github-actions group with 10 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4` | `6` | | [actions/setup-go](https://github.com/actions/setup-go) | `5` | `6` | | [actions/setup-node](https://github.com/actions/setup-node) | `4` | `6` | | [actions/cache](https://github.com/actions/cache) | `4` | `5` | | [anchore/sbom-action](https://github.com/anchore/sbom-action) | `0.20.5` | `0.22.1` | | [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) | `0.28.0` | `0.33.1` | | [anchore/scan-action](https://github.com/anchore/scan-action) | `6.5.1` | `7.3.1` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4` | `6` | | [actions/attest-sbom](https://github.com/actions/attest-sbom) | `1` | `3` | | [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) | `1` | `3` | Updates `actions/checkout` from 4 to 6 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v6) Updates `actions/setup-go` from 5 to 6 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v5...v6) Updates `actions/setup-node` from 4 to 6 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v6) Updates `actions/cache` from 4 to 5 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v4...v5) Updates `anchore/sbom-action` from 0.20.5 to 0.22.1 - [Release notes](https://github.com/anchore/sbom-action/releases) - [Changelog](https://github.com/anchore/sbom-action/blob/main/RELEASE.md) - [Commits](da167eac91...deef08a0db) Updates `aquasecurity/trivy-action` from 0.28.0 to 0.33.1 - [Release notes](https://github.com/aquasecurity/trivy-action/releases) - [Commits](https://github.com/aquasecurity/trivy-action/compare/0.28.0...0.33.1) Updates `anchore/scan-action` from 6.5.1 to 7.3.1 - [Release notes](https://github.com/anchore/scan-action/releases) - [Changelog](https://github.com/anchore/scan-action/blob/main/RELEASE.md) - [Commits](1638637db6...8d2fce0942) Updates `actions/upload-artifact` from 4 to 6 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v4...v6) Updates `actions/attest-sbom` from 1 to 3 - [Release notes](https://github.com/actions/attest-sbom/releases) - [Changelog](https://github.com/actions/attest-sbom/blob/main/RELEASE.md) - [Commits](https://github.com/actions/attest-sbom/compare/v1...v3) Updates `actions/attest-build-provenance` from 1 to 3 - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](https://github.com/actions/attest-build-provenance/compare/v1...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-go dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/cache dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: anchore/sbom-action dependency-version: 0.22.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: aquasecurity/trivy-action dependency-version: 0.33.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: anchore/scan-action dependency-version: 7.3.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/attest-sbom dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/attest-build-provenance dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
218 lines
6.1 KiB
YAML
218 lines
6.1 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
permissions:
|
|
contents: write
|
|
packages: write
|
|
id-token: write
|
|
attestations: write
|
|
security-events: write
|
|
|
|
jobs:
|
|
github-release:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
hashes: ${{ steps.hash.outputs.hashes }}
|
|
image-digest: ${{ steps.image.outputs.digest }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: "1.25.6"
|
|
cache: true
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: ".nvmrc"
|
|
cache: "npm"
|
|
|
|
- name: Update npm
|
|
run: npm i -g npm@11.8.0
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Install Cosign
|
|
uses: sigstore/cosign-installer@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
with:
|
|
platforms: all
|
|
|
|
- name: Log in to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v6
|
|
with:
|
|
distribution: goreleaser
|
|
version: "~> v2"
|
|
args: release --clean
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Scan Docker image with Trivy
|
|
uses: aquasecurity/trivy-action@0.33.1
|
|
with:
|
|
image-ref: "ghcr.io/getprobo/probo:${{ github.ref_name }}"
|
|
format: "sarif"
|
|
output: "trivy-results.sarif"
|
|
exit-code: 1
|
|
ignore-unfixed: true
|
|
vuln-type: "os,library"
|
|
severity: "CRITICAL,HIGH"
|
|
|
|
- name: Upload Trivy scan results to GitHub Security tab
|
|
uses: github/codeql-action/upload-sarif@v4
|
|
if: always()
|
|
with:
|
|
sarif_file: "trivy-results.sarif"
|
|
|
|
- name: Generate SBOM
|
|
uses: anchore/sbom-action@deef08a0db64bfad603422135db61477b16cef56 #v0.22.1
|
|
with:
|
|
path: ./
|
|
format: cyclonedx-json
|
|
output-file: sbom.json
|
|
|
|
- name: Run vulnerability scan
|
|
uses: anchore/scan-action@8d2fce09422cd6037e577f4130e9b925e9a37175 #v7.3.1
|
|
with:
|
|
path: ./
|
|
fail-build: true
|
|
severity-cutoff: critical
|
|
|
|
- name: Generate subject for attestation
|
|
id: hash
|
|
run: |
|
|
set -euo pipefail
|
|
(
|
|
cd dist
|
|
find . -type f -name '*.tar.gz' -o -name '*.zip' | while read file; do
|
|
echo "$(sha256sum "$file" | head -c 64) $file"
|
|
done
|
|
) > checksums.txt
|
|
echo "hashes=$(cat checksums.txt | base64 -w0)" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Attest SBOM
|
|
uses: actions/attest-sbom@v3
|
|
with:
|
|
subject-path: "dist/*.tar.gz, dist/*.zip"
|
|
sbom-path: "sbom.json"
|
|
|
|
- name: Attest build provenance
|
|
uses: actions/attest-build-provenance@v3
|
|
with:
|
|
subject-path: "dist/*.tar.gz, dist/*.zip"
|
|
|
|
- name: Get image digest
|
|
id: image
|
|
run: |
|
|
echo "Getting image digest..."
|
|
DIGEST=$(docker buildx imagetools inspect ghcr.io/getprobo/probo:${{ github.ref_name }} --format '{{json .Manifest.Digest}}' | jq -r)
|
|
echo "Successfully retrieved digest: $DIGEST"
|
|
echo "digest=$DIGEST" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Attest Docker image SBOM
|
|
uses: actions/attest-sbom@v3
|
|
with:
|
|
subject-name: "ghcr.io/getprobo/probo"
|
|
subject-digest: ${{ steps.image.outputs.digest }}
|
|
sbom-path: "sbom.json"
|
|
|
|
- name: Upload SBOM as artifact
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: sbom
|
|
path: |
|
|
sbom.json
|
|
checksums.txt
|
|
retention-days: 30
|
|
|
|
npm-release:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
attestations: write
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: ".nvmrc"
|
|
cache: "npm"
|
|
registry-url: "https://registry.npmjs.org"
|
|
scope: "@probo"
|
|
|
|
- run: npm install -g npm@latest
|
|
- run: npm ci
|
|
- run: npm --workspace @probo/n8n-nodes-probo run build
|
|
- name: Set package version from git tag
|
|
run: |
|
|
VERSION="${GITHUB_REF_NAME#v}"
|
|
npm --workspace @probo/n8n-nodes-probo version "$VERSION" --no-git-tag-version
|
|
|
|
- uses: anchore/sbom-action@deef08a0db64bfad603422135db61477b16cef56 #v0.22.1
|
|
with:
|
|
path: ./packages/n8n-node
|
|
format: cyclonedx-json
|
|
output-file: packages/n8n-node/sbom.json
|
|
|
|
- uses: anchore/scan-action@8d2fce09422cd6037e577f4130e9b925e9a37175 #v7.3.1
|
|
with:
|
|
path: ./packages/n8n-node
|
|
fail-build: true
|
|
severity-cutoff: critical
|
|
|
|
- name: Generate checksums for dist files
|
|
id: checksum
|
|
run: |
|
|
cd packages/n8n-node/dist
|
|
find . -type f | while read file; do
|
|
echo "$(sha256sum "$file" | head -c 64) $file"
|
|
done > ../checksums.txt
|
|
echo "hashes=$(cat ../checksums.txt | base64 -w0)" >> "$GITHUB_OUTPUT"
|
|
|
|
- run: npm --workspace @probo/n8n-nodes-probo publish --access public --dry-run
|
|
- run: npm --workspace @probo/n8n-nodes-probo publish --access public
|
|
|
|
- uses: actions/attest-sbom@v3
|
|
with:
|
|
subject-path: "packages/n8n-node/dist/**"
|
|
sbom-path: "packages/n8n-node/sbom.json"
|
|
|
|
- uses: actions/attest-build-provenance@v3
|
|
with:
|
|
subject-path: "packages/n8n-node/dist/**"
|
|
|
|
- uses: actions/upload-artifact@v6
|
|
with:
|
|
name: npm-sbom
|
|
path: |
|
|
packages/n8n-node/sbom.json
|
|
packages/n8n-node/checksums.txt
|
|
retention-days: 30
|