Report should have host_id, reported_at, status and metrics attr_accessible
In report model we should add
attr_accessible :host_id, :reported_at, :status, :metrics to support children who assign those values.
#4 Updated by Shlomi Zadok over 3 years ago
In foreman_openscap, we do not use a report importer, the ArfReport has a method which simulates the importer to create the ArfReport.
As you can see, we generate the report directly with ArfReport.create! which yields:
Action failed ActiveModel::MassAssignmentSecurity::Error: Can't mass-assign protected attributes: host_id, reported_at, status, metrics