Skip to content

Commit

Permalink
Merge pull request #131 from radixdlt/DO-2949-snyk-policy
Browse files Browse the repository at this point in the history
ci: load snyk policy from env [DO-2949]
  • Loading branch information
marek-karwacki-rdx authored Jan 15, 2025
2 parents 64c57e1 + 24ecdd5 commit 7c14c80
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
role-to-assume: ${{ secrets.AWS_ROLE_NAME_SNYK_SECRET }}
aws-region: "eu-west-2"
role-session-name: "baylon-nodecli-${{ github.run_id }}-${{ github.run_attempt }}"
- name: Create .snyk file
run: echo "${{ vars.DOT_SNYK_FILE }}" > .snyk
- name: Fetch AWS secrets
uses: RDXWorks-actions/aws-secretsmanager-get-secrets@main
with:
Expand Down Expand Up @@ -158,8 +160,6 @@ jobs:
uses: RDXWorks-actions/checkout@main
with:
fetch-depth: 0
- name: Dump context
uses: RDXWorks-actions/ghaction-dump-context@master
- name: Install build essentials
run: sudo apt-get -y install build-essential
- name: setup python
Expand Down Expand Up @@ -210,8 +210,6 @@ jobs:
uses: RDXWorks-actions/checkout@main
with:
fetch-depth: 0
- name: Dump context
uses: RDXWorks-actions/ghaction-dump-context@master
- name: setup python
uses: RDXWorks-actions/setup-python@main
with:
Expand Down
7 changes: 0 additions & 7 deletions .snyk

This file was deleted.

6 changes: 3 additions & 3 deletions node-runner-cli/tests/unit/test_systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def file_contains_regular_expression(re_str: str, file: str) -> bool:
class SystemdUnitTests(unittest.TestCase):
@unittest.skip("Tests with PROMPT_FEEDS can only be run individually")
def test_systemd_install_continue_prompt_feed(self):
os.environ[
"PROMPT_FEEDS"
] = "test-prompts/individual-prompts/systemd_install_continue.yml"
os.environ["PROMPT_FEEDS"] = (
"test-prompts/individual-prompts/systemd_install_continue.yml"
)
PromptFeeder.instance().load_prompt_feeds()
SystemDSetup.confirm_config("dummy1", "dummy2", "dummy3", "dummy4")

Expand Down
6 changes: 3 additions & 3 deletions node-runner-cli/tests/unit/test_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def test_validator_address_included_in_dict_from_object(self):

@mock.patch("sys.stdout", new_callable=StringIO)
def test_validator_promptfeed(self, mock_out):
os.environ[
"PROMPT_FEEDS"
] = "test-prompts/individual-prompts/validator_address.yml"
os.environ["PROMPT_FEEDS"] = (
"test-prompts/individual-prompts/validator_address.yml"
)
PromptFeeder.prompts_feed = PromptFeeder.instance().load_prompt_feeds()
address = Prompts.ask_validator_address()
self.assertEqual("validator_mock", address)
Expand Down

0 comments on commit 7c14c80

Please sign in to comment.