Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: edited e2e test #320

Merged
merged 4 commits into from
Jul 3, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/e2e_testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
release:
types: [ published ]
pull_request:
pull_request_target:
types: [ labeled ]
permissions:
contents: read
jobs:
install_and_run_e2e_tests:
if: ${{ (github.event.pull_request.head.repo.fork == false || github.event.pull_request.head.repo.fork == true) && contains(github.event.pull_request.labels.*.name,'Approve E2E Test') }}
Tal-Legit marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -46,7 +49,14 @@
extra: --repo Legitify-E2E/bad_branch_protection

steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # ratchet:actions/checkout@v3
- name: Checkout non-fork
if: ${{ github.event.pull_request.head.repo.fork == false }}
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # ratchet:actions/checkout@v3

Check failure on line 54 in .github/workflows/e2e_testing.yaml

View check run for this annotation

Legit Security / Legit Pipeline Scanning

.github/workflows/e2e_testing.yaml#L54

Checkout base repository pipeline issue was found Instance identifier: instance_5C5D072C7F47D0E7F38048F9550E3EAA # type: pipeline, file: .github/workflows/e2e_testing.yaml, line: 54 Value identifier: value_action_actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # type: pipeline
- name: Checkout fork
if: ${{ github.event.pull_request.head.repo.fork == true }}
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # ratchet:actions/checkout@v3

Check failure on line 57 in .github/workflows/e2e_testing.yaml

View check run for this annotation

Legit Security / Legit Pipeline Scanning

.github/workflows/e2e_testing.yaml#L57

Checkout base repository pipeline issue was found Instance identifier: instance_E553D24593AB8E5DE68FC9469FEF895D # type: pipeline, file: .github/workflows/e2e_testing.yaml, line: 57 Value identifier: value_action_actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # type: pipeline
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # ratchet:actions/setup-go@v3
with:
go-version: 1.19
Expand Down
Loading