ci(deps)(deps): bump actions/github-script from 7 to 8 #130
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: QDI Coding Agent | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| ethical-review: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Install Dependencies | |
| run: pip install 'qiskit>=0.45.0,<2.0.0' | |
| - name: Simulate Default Bell State Circuit | |
| id: simulate | |
| run: | | |
| if [ -f agent_skills.py ]; then | |
| python agent_skills.py simulate | |
| exit_code=$? | |
| if [ "$exit_code" -ne 0 ]; then | |
| echo "Simulation failed with exit code $exit_code" | |
| exit "$exit_code" | |
| fi | |
| else | |
| echo "Agent skills script not found, skipping simulation" | |
| fi | |
| - name: Provenance Tag | |
| run: | | |
| echo "Tagging event: ${{ github.event_name }}" | |
| echo "ATOM provenance tracked for ethical review" | |
| - name: Comment on PR | |
| if: >- | |
| github.event_name == 'pull_request' && | |
| steps.simulate.outcome == 'success' | |
| uses: actions/github-script@v8 | |
| with: | |
| script: | | |
| // NOTE: If user-controlled data (e.g., PR titles or bodies) | |
| // is added to this message in the future, be sure to sanitize | |
| // it before including it in the comment to avoid injection | |
| // attacks. | |
| // Use hardcoded safe message (current implementation) | |
| const message = '🌀 **Agent Review**: Coherence >60%. ' + | |
| 'Ethical quantum sims validated. Ready for merge.'; | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: message | |
| }) |