23. GitHub Actions
January 5, 2024Less than 1 minute
GitHub Actions
Our profile utilizes GitHub Actions as its primary CI/CD process. The Actions are separated by general business or process functions, allowing for a clear distinction between the workflow stages that we are testing.
lint-profile.yml
This action checks out the repository, installs Ruby and InSpec, then runs bundle exec inspec check .
to validate the structure and syntax of the InSpec profile and its Ruby code.
verify-ec2.yml
This action performs the following steps:
- Checks out the repository.
- Installs Ruby, InSpec, AWS CLI, and Test Kitchen along with its drivers.
- Sets up the 'runner'.
- Configures access to the AWS VPC environment.
- Runs the
vanilla
andhardened
test suites. - Displays a summary of the test suite results.
- Saves the test suite results.
- Uploads the results to our Heimdall Demo server.
- Determines the success or failure of the test run based on the validation of the test suite results against the
threshold.yml
files for each test suite (hardened
andvanilla
).
verify-container.yml
This action performs similar steps to verify-ec2.yml
, with a key additional step of configuring access to the required container registries - Platform One and Red Hat.