Skip to content

Commit e4e992b

Browse files
committed
fix(ci): Remove duplicate context declaration in e2e workflow
The GitHub Actions script was attempting to redeclare the 'context' variable which is already a global in the actions/github-script environment. This caused a SyntaxError preventing the workflow from running. Fixed by using github.context directly instead of creating a local variable. Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com> Assisted-by: Claude-3.5-Sonnet (via Claude Code)
1 parent 6f0d774 commit e4e992b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/e2e.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,12 @@ jobs:
8484
core.setFailed('Invalid GitHub context: missing required pull_request information');
8585
return;
8686
}
87-
const context = github.context;
8887
8988
async function run() {
90-
const actor = context.payload.pull_request.user.login;
91-
const repoOwner = context.repo.owner;
92-
const repoName = context.repo.repo;
93-
const targetOrg = context.repo.owner;
89+
const actor = github.context.payload.pull_request.user.login;
90+
const repoOwner = github.context.repo.owner;
91+
const repoName = github.context.repo.repo;
92+
const targetOrg = github.context.repo.owner;
9493
9594
core.info(`🔍 Starting permission check for user: @${actor}`);
9695
core.info(`📋 Repository: ${repoOwner}/${repoName}`);

0 commit comments

Comments
 (0)