Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Jenkinsfile #20

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -8,13 +8,10 @@ pipeline {
steps {
script {
withCredentials([
usernamePassword(credentialsId: 'jenkins-artifactory', usernameVariable: 'ARTIFACTORY_USER', passwordVariable: 'ARTIFACTORY_PASS'),
file(credentialsId: 'google-artifactory-dev-write', variable: 'GAR_WR_SECRET')
]) {
sh '''#!/bin/bash
set -euo pipefail
echo "Logging into Artifactory"
docker login docker.internal.sysdig.com -u="$ARTIFACTORY_USER" -p="$ARTIFACTORY_PASS"
echo "Logging into GAR dev"
cat $GAR_WR_SECRET | docker login --username _json_key --password-stdin us-docker.pkg.dev/sysdig-artifact-registry-dev/gar-docker
'''
@@ -32,13 +29,10 @@ pipeline {
userRemoteConfigs: [[credentialsId: 'github-jenkins-user-token', url: 'https://github.com/draios/linux-bench.git']]
])
script {
docker.withRegistry("https://docker.internal.sysdig.com", 'jenkins-artifactory') {
sh "IMAGE_TAG=${params.TAG} PUSH=yes make -f makefile-sysdig build-dependency-image"
sh "IMAGE_TAG=${params.TAG} PUSH=yes make -f makefile-sysdig build-dependency-image-gar"
}
}
sh "IMAGE_TAG=${params.TAG} PUSH=yes make -f makefile-sysdig build-dependency-image-gar"
}
}
}
}
}


Unchanged files with check annotations Beta

---

Check warning on line 1 in .goreleaser.yml

GitHub Actions / YAML-lint

1:4 [new-lines] wrong new line character: expected \n

Check warning on line 1 in .goreleaser.yml

GitHub Actions / YAML-lint

1:4 [new-lines] wrong new line character: expected \n
env:
- GO111MODULE=on
- LINUXBENCH_CFG=/etc/linux-bench/cfg
- id: 1.1
description: "Filesystem Configuration"
checks:
- id: 1.1.1

Check warning on line 11 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

11:5 [indentation] wrong indentation: expected 2 but found 4

Check warning on line 11 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

11:5 [indentation] wrong indentation: expected 2 but found 4
description: "Disable unused filesystems"
- id: 1.1.1.1.a
description: "Ensure mounting of cramfs filesystems is disabled"
- id: 1.2
description: "Configure Software Updates"
checks:
- id: 1.2.1

Check warning on line 650 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

650:5 [indentation] wrong indentation: expected 2 but found 4

Check warning on line 650 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

650:5 [indentation] wrong indentation: expected 2 but found 4
description: "Ensure package manager repositories are configured"
sub_checks:
- check:
- id: 1.3
description: "Filesystem Integrity Checking"
checks:
- id: 1.3.1

Check warning on line 711 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

711:5 [indentation] wrong indentation: expected 2 but found 4

Check warning on line 711 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

711:5 [indentation] wrong indentation: expected 2 but found 4
description: "Ensure AIDE is installed"
sub_checks:
- check:
- id: 1.4
description: "Secure Boot Settings"
checks:
- id: 1.4.1

Check warning on line 796 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

796:5 [indentation] wrong indentation: expected 2 but found 4

Check warning on line 796 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

796:5 [indentation] wrong indentation: expected 2 but found 4
description: "Ensure permissions on bootloader config are configured"
sub_checks:
- check:
- id: 1.5
description: "Additional Process Hardening"
checks:
- id: 1.5.1.a

Check warning on line 990 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

990:5 [indentation] wrong indentation: expected 2 but found 4

Check warning on line 990 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

990:5 [indentation] wrong indentation: expected 2 but found 4
description: "Ensure core dumps are restricted"
audit: "grep -h ^[^#].*hard[[:blank:]]*core /etc/security/limits.conf /etc/security/limits.d/*"
tests:
- id: 1.6.2
description: "Configure AppArmor"
checks:
- id: 1.6.2.1

Check warning on line 1424 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

1424:5 [indentation] wrong indentation: expected 2 but found 4

Check warning on line 1424 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

1424:5 [indentation] wrong indentation: expected 2 but found 4
description: "Ensure AppArmor is not disabled in bootloader configuration"
sub_checks:
- check:
- id: 1.6.3
description: "Ensure SELinux or AppArmor are installed"
checks:
- id: 1.6.3.1

Check warning on line 1490 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

1490:5 [indentation] wrong indentation: expected 2 but found 4

Check warning on line 1490 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

1490:5 [indentation] wrong indentation: expected 2 but found 4
description: "Ensure SELinux or AppArmor are installed"
sub_checks:
- check:
- id: 1.7.1
description: "Command Line Warning Banners"
checks:
- id: 1.7.1.1.a

Check warning on line 1569 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

1569:5 [indentation] wrong indentation: expected 2 but found 4

Check warning on line 1569 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

1569:5 [indentation] wrong indentation: expected 2 but found 4
description: "Ensure message of the day is configured properly"
audit: "cat /etc/motd"
type: manual
- id: 2.1
description: "inetd Services"
checks:
- id: 2.1.1.a

Check warning on line 1891 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

1891:5 [indentation] wrong indentation: expected 2 but found 4

Check warning on line 1891 in cfg/1.1.0/definitions.yaml

GitHub Actions / YAML-lint

1891:5 [indentation] wrong indentation: expected 2 but found 4
description: "Ensure chargen services are not enabled"
audit: "grep -R \"^chargen\" /etc/inetd.*"
tests: