-
Notifications
You must be signed in to change notification settings - Fork 40
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
Conversation
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
Show autofix suggestion
Hide autofix suggestion
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.
-
Copy modified lines R6-R8
@@ -5,2 +5,5 @@ | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: |
Description:
Run E2E test on Github
Issues:
N/A
UI changes
N/A
Checklist:
fix(<scope>):
,feat(<scope>):
,feature(<scope>):
,chore(<scope>):
,hotfix(<scope>):
ore2e(<scope>):
. If contains breaking changes then the pull request name must start withfix(<scope>)!:
,feat(<scope>)!:
,feature(<scope>)!:
,chore(<scope>)!:
,hotfix(<scope>)!:
ore2e(<scope>)!:
where<scope>
is name of affected project:chat
,chat-e2e
,overlay
,shared
,sandbox-overlay
, etc.(Issue #<TICKET_ID>)
(comma-separated list of issues)