From a07a0bb953e0237dae6786fe5ec2d93551397807 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 11 Mar 2024 07:52:12 +0100 Subject: [PATCH] tests-scan: Add "image-download" secret So that job containers can download private images (RHEL). This secret gets defined in https://github.com/cockpit-project/cockpituous/pull/594 --- test/test_tests_scan.py | 6 +++--- tests-scan | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_tests_scan.py b/test/test_tests_scan.py index 049bfd467a..c0c96f93d9 100755 --- a/test/test_tests_scan.py +++ b/test/test_tests_scan.py @@ -282,7 +282,7 @@ def test_amqp_pr(self, mock_queue, _mock_strftime): "slug": f"pull-{self.pull_number}-abcdef-20240102-030405-fedora-nightly", "target": "stable-1.0", "container": "supertasks", - "secrets": ["github-token"], + "secrets": ["github-token", "image-download"], "env": { "BASE_BRANCH": "stable-1.0", "COCKPIT_BOTS_REF": "main", @@ -338,7 +338,7 @@ def test_amqp_sha_nightly(self, mock_queue, _mock_strftime): }, # project/repo doesn't have a custom container name file "container": None, - "secrets": ["github-token"], + "secrets": ["github-token", "image-download"], "env": { "COCKPIT_BOTS_REF": "main", "TEST_OS": "fedora", @@ -389,7 +389,7 @@ def test_amqp_sha_pr(self, mock_queue, _mock_strftime): "slug": f"pull-{self.pull_number}-abcdef-20240102-030405-fedora-nightly", "target": "stable-1.0", "container": "supertasks", - "secrets": ["github-token"], + "secrets": ["github-token", "image-download"], "env": { "BASE_BRANCH": "stable-1.0", "COCKPIT_BOTS_REF": "main", diff --git a/tests-scan b/tests-scan index 51df465617..52850a6cc6 100755 --- a/tests-scan +++ b/tests-scan @@ -235,8 +235,8 @@ def queue_test(job: Job, channel, options: argparse.Namespace) -> None: "slug": slug, "env": env, "container": job.container, - # for updating naughty trackers - "secrets": ["github-token"], + # for updating naughty trackers and downloading private images + "secrets": ["github-token", "image-download"], } }