Streamline the process of generating AsciiDoc documentation from inline comments within source code files. This tool converts inline documentation into AsciiDoc files, tailored for seamless integration with Antora.
How can I make sure user "vscode" exists in the dev container and not in the container that is running inspec (which is the container/vm that runs the actions workflow)?
##
#
##
title 'devcontainer checks'
control 'devcontainer-1.0' do
impact 0.5
title 'Verify devcontainer operating system'
desc 'Verify the devcontainer operating system type and configuration'
describe os.family do
it { should eq 'debian' }
end
end
control 'devcontainer-1.1' do
impact 0.5
title 'Verify user "vscode" presence and configuration'
desc 'Verify that the user "vscode" is present and correctly configured'
describe user('vscode') do
it { should exist }
its('home') { should eq '/home/vscode' }
its('shell') { should eq '/bin/bash' }
end
end
control 'devcontainer-1.2' do
impact 0.5
title 'Verify source2adoc directory'
desc 'Verify that the source2adoc directory exists and has the correct ownership'
describe directory('/workspaces/source2adoc') do
it { should exist }
it { should be_directory }
its('owner') { should eq 'vscode' }
its('group') { should eq 'vscode' }
end
end
RELATES TO
26
todo
Run inspec tests against the dev container ...
:question:
components/test/compliance/inspec/devcontainer-profile/controls/decvontainer-checks.rb
.github/workflows/pipeline.yml