Skip to content

Commit

Permalink
ci: switch to dedicated semgrep test org
Browse files Browse the repository at this point in the history
  • Loading branch information
xopham committed May 30, 2024
1 parent 632afa8 commit b328729
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/.reusable-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
[
"basic",
"autofix",
"semgrep_login",
]
steps:
- name: Checkout code
Expand All @@ -61,7 +62,7 @@ jobs:
k8s-version: v1.25
- name: Run test
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_TEST_APP_TOKEN }}
run: |
bash tests/integration/main.sh "${{ matrix.integration-test-arg }}"
- name: Display semgr8s configuration
Expand Down Expand Up @@ -97,7 +98,6 @@ jobs:
integration-test-arg:
[
"remote_rules",
"semgrep_login",
]
steps:
- name: Checkout code
Expand All @@ -117,7 +117,7 @@ jobs:
k8s-version: v1.25
- name: Run test
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_TEST_APP_TOKEN }}
run: |
bash tests/integration/main.sh "${{ matrix.integration-test-arg }}"
- name: Display semgr8s configuration
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/test_cases/semgrep_login.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ testCases:
type: k8s-yaml
ref: 45_other_testlabel_pod
namespace: validatedns
expected_msg: semgr8ns.test-other-semgr8s-forbidden-label
expected_msg: k8s.test-other-semgr8s-forbidden-label

values:
deployment:
image:
repository: "${IMAGE}"
tag: "${TAG}"
application:
remoteRules: ["r/semgr8ns.test-other-semgr8s-forbidden-label"]
remoteRules: ["r/k8s.test-other-semgr8s-forbidden-label"]
semgrepLogin: true

0 comments on commit b328729

Please sign in to comment.