CI Lint raises ActiveRecord::ReadOnlyRecord error

After running a pipeline simulation with dry_run, @pipeline.skip in Chain::Skip raises an error because dry_run checks for @pipeline.readonly!

temporary* fix - in lib/gitlab/ci/pipeline/chain/skip, add this:

if skipped? && !@pipeline.readonly?
    if @command.save_incompleted

* for more details 👁️ ->

Edited by Laura Montemayor