Skip to content
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

copy workflows from blueapi, [still need to configure env values -not a code change] #664

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
25 changes: 25 additions & 0 deletions .github/workflows/_codeql.yml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're missing these lines:

      - name: Perform CodeQL Analysis
        uses: github/codeql-action/analyze@v3
        with:
          category: "/language:python"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Post job cleanup.
CodeQL job status was configuration error.

what a misleading CI job, it was all green.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah right I made a delete for the whole section instead of selectively

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushes to this branch will not trigger CodeQL, it only runs periodically.

To test your changes please hit the "run workflow" button and choose your branch here:
https://github.com/bluesky/ophyd-async/actions/workflows/periodic.yml

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this run was successfull but I haven't seen the successfull scans here https://github.com/bluesky/ophyd-async/security/code-scanning

investigating

Copy link
Contributor Author

@stan-dot stan-dot Feb 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debugging the path (?) image

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "CodeQL"

on:
workflow_call:

jobs:
analyze:
name: Analyze (python)
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/using-larger-runners (GitHub.com only)
runs-on: "ubuntu-latest"
timeout-minutes: 120
permissions:
# required for all workflows
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
build-mode: none
2 changes: 2 additions & 0 deletions .github/workflows/periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ jobs:
uses: ./.github/workflows/_tox.yml
with:
tox: docs build -- -b linkcheck
codeql:
uses: ./.github/workflows/_codeql.yml
Loading