Skip to content

Instantly share code, notes, and snippets.

View cdupuis's full-sized avatar

Christian Dupuis cdupuis

View GitHub Profile
{
"autoConfigurationAuditEndpoint": {
"prefix": "endpoints.autoconfig",
"properties": {
"enabled": true,
"id": "autoconfig",
"sensitive": true
}
},
"beansEndpoint": {
const autofix = new Autofix().with(AddDockerfile);
const version = new Version().withVersioner(MavenProjectVersioner);
const build = new Build().with({
builder: new MavenBuilder(sdm),
progressReporter: MavenProgressReporter,
});
const dockerBuild = new DockerBuild().with({
preparations: [MavenVersionPreparation, MavenPackage],
const BaseGoals = goals("checks")
.plan(version, autofix);
const BuildGoals = goals("build")
.plan(build).after(autofix, version);
const DeployGoals = goals("deploy")
.plan(dockerBuild).after(build)
.plan(kubernetesDeploy).after(dockerBuild);
import { Configuration } from "@atomist/automation-client";
import { SoftwareDeliveryMachine } from "@atomist/sdm";
import {
configureSdm,
LocalSoftwareDeliveryMachineConfiguration,
createSoftwareDeliveryMachine,
} from "@atomist/sdm-core";
function machine(cfg: LocalSoftwareDeliveryMachineConfiguration): SoftwareDeliveryMachine {
const sdm = createSoftwareDeliveryMachine({
@cdupuis
cdupuis / index.ts
Last active October 24, 2019 17:26
import {
goal,
hasFile,
PlannedGoal,
SdmGoalState,
} from "@atomist/sdm";
import { configure } from "@atomist/sdm-core";
/**
* Atomist SDM Sample
import {
CompressingGoalCache,
configure,
hasRepositoryGoals,
RepositoryDrivenContainer,
} from "@atomist/sdm-core";
import * as os from "os";
import * as path from "path";
export const configuration = configure(async sdm => {
{
"name": "clj-kondo",
"severity": "error",
"report": "error",
"pattern": [
{
"regexp": "[\\s\\./]*([^:]*):([0-9]*):([0-9]*):\\s(.*):\\s(.*)",
"groups": {
"path": 1,
"line": 2,
#! /bin/bash
echo "Hello World, $@"
cat $ATOMIST_PAYLOAD
**memcached@sha256:9e581dde543f22d9efd661eb043b07adb561af5b048ce9776e89a0595aa8087c**
| | Trivy <sub><code>43<br/>C:1 H:4 M:3 L:34 U:1 time: 5708ms</code></sub> | Grype <sub><code>43<br/>C:2 H:17 M:15 L:7 U:2 time: 8739ms</code></sub> | Snyk <sub><code>43<br/>C:0 H:0 M:0 L:43 U:0 time: 3370ms</code></sub> | Query <sub><code>44<br/>C:1 H:4 M:3 L:31 U:5 time: 1156ms</code></sub> |
| --- | ----- | ----- | ------- | ------- |
| [CVE-2019-1010022](https://nvd.nist.gov/vuln/detail/CVE-2019-1010022) | low <code>9.8</code><br/><code>libc-bin</code> <code>2.31-13+deb11u5</code><br/><br/><code>libc6</code> <code>2.31-13+deb11u5</code><br/> | critical <code>7.5</code><br/><code>glibc</code> <code>2.31-13+deb11u5</code><br/> | low <code>9.8</code><br/><code>glibc</code> <code>2.31-13+deb11u5</code><br/> | |
| [CVE-2019-8457](https://nvd.nist.gov/vuln/detail/CVE-2019-8457) | critical <code>9.8</code><br/><code>libdb5.3</code> <code>5.3.28+dfsg1-0.8</code><br/> | critical <code>9.8</code><br/><code>db5.3</code> <code>5
{
"version": "15.0.6",
"vulnerabilities": [
{
"id": "b8b00cd988d5f008916a3ca2bd8c42cbf50fe654f281b3d3bbaddf424015a58e",
"category": "container_scanning",
"message": "CVE-2024-24788 on stdlib@1.22.2",
"description": "A malformed DNS message in response to a query can cause the Lookup functions to get stuck in an infinite loop.",
"cve": "CVE-2024-24788",
"severity": "Unknown",