-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from lcarva/HACBS-2657
Add redhat-no-hermetic config
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# | ||
# To use this policy with the ec command line: | ||
# ec validate image \ | ||
# --image $IMAGE \ | ||
# --public-key key.pub \ | ||
# --policy github.com/enterprise-contract/config//redhat-no-hermetic | ||
# | ||
# To use with an RHTAP Enterprise Contract Integration Test CR: | ||
# ... | ||
# spec: | ||
# params: | ||
# - name: POLICY_CONFIGURATION | ||
# value: github.com/enterprise-contract/config//redhat-no-hermetic | ||
# ... | ||
# | ||
description: >- | ||
Includes most of the rules and policies required internally by Red Hat when building Red Hat products. It excludes the requirement of hermetic builds. | ||
Available collections are defined in | ||
https://redhat-appstudio.github.io/docs.stonesoup.io/ec-policies/release_policy.html#_available_rule_collections. | ||
If a different policy configuration is desired, this resource can serve as a starting point. | ||
See the docs on how to include and exclude rules | ||
https://redhat-appstudio.github.io/docs.stonesoup.io/ec-policies/policy_configuration.html#_including_and_excluding_rules. | ||
publicKey: "k8s://openshift-pipelines/public-key" | ||
|
||
sources: | ||
- name: Default | ||
policy: | ||
- github.com/enterprise-contract/ec-policies//policy/lib | ||
- github.com/enterprise-contract/ec-policies//policy/release | ||
data: | ||
- oci::quay.io/redhat-appstudio-tekton-catalog/data-acceptable-bundles:latest | ||
- github.com/release-engineering/rhtap-ec-policy//data | ||
|
||
configuration: | ||
include: | ||
- '@redhat' | ||
|
||
exclude: | ||
# Exclude step_image_registries for now since it can cause false | ||
# positives due to https://issues.redhat.com/browse/OCPBUGS-8428 | ||
- hermetic_build_task | ||
- tasks.required_tasks_found:prefetch-dependencies | ||
- step_image_registries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters