Skip to content

chore(ci): run E2E tests on Github #4113

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

Merged
merged 1 commit into from
Jun 26, 2025
Merged

chore(ci): run E2E tests on Github #4113

merged 1 commit into from
Jun 26, 2025

Conversation

tataranovich
Copy link
Contributor

Description:

Run E2E test on Github

Issues:

N/A

UI changes

N/A

Checklist:

  • the pull request name complies with Conventional Commits
  • the pull request name starts with fix(<scope>):, feat(<scope>):, feature(<scope>):, chore(<scope>):, hotfix(<scope>): or e2e(<scope>):. If contains breaking changes then the pull request name must start with fix(<scope>)!:, feat(<scope>)!:, feature(<scope>)!:, chore(<scope>)!:, hotfix(<scope>)!: or e2e(<scope>)!: where <scope> is name of affected project: chat, chat-e2e, overlay, shared, sandbox-overlay, etc.
  • the pull request name ends with (Issue #<TICKET_ID>) (comma-separated list of issues)
  • I confirm that do not share any confidential information like API keys or any other secrets and private URLs

Comment on lines +8 to +22
runs-on: ubuntu-latest
if: ${{ github.event.registry_package.package_version.container_metadata.tag.name == 'development' }}
uses: epam/ai-dial-ci/.github/workflows/[email protected]
with:
gitlab-project-id: "1843"
secrets:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_ACCESS_TOKEN: ${{ secrets.DEPLOY_ACCESS_TOKEN }}
DEPLOY_TRIGGER_TOKEN: ${{ secrets.DEPLOY_TRIGGER_TOKEN }}
steps:
- name: E2E tests
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
repository: epam/ai-dial-ci
event-type: e2e-tests-workflow
client-payload: |-
{
"github-app": "${{github.event.repository.name}}",
"github-sha": "${{github.sha}}",
"gitlab-project-id": "1843"
}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}

Copilot Autofix

AI 10 days ago

To fix the issue, we will add a permissions block to the workflow. Since the workflow triggers an external repository dispatch event and does not appear to require write access to repository contents, we will set contents: read as the minimal required permission. If additional permissions are needed for specific actions, they can be added explicitly.

The permissions block will be added at the root of the workflow, applying to all jobs in the workflow.


Suggested changeset 1
.github/workflows/e2e_tests.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/e2e_tests.yml b/.github/workflows/e2e_tests.yml
--- a/.github/workflows/e2e_tests.yml
+++ b/.github/workflows/e2e_tests.yml
@@ -5,2 +5,5 @@
 
+permissions:
+  contents: read
+
 jobs:
EOF
@@ -5,2 +5,5 @@

permissions:
contents: read

jobs:
Copilot is powered by AI and may make mistakes. Always verify output.
@nepalevov nepalevov merged commit 4859e10 into development Jun 26, 2025
9 checks passed
@nepalevov nepalevov deleted the github-e2e branch June 26, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants