diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 39adb93f..9483a4cb 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,9 +13,9 @@ name: "CodeQL" on: push: - branches: [ "master" ] + branches: [ "codeql-enable" ] pull_request: - branches: [ "master" ] + branches: [ "codeql-enable" ] schedule: - cron: '41 23 * * 3' @@ -93,7 +93,12 @@ jobs: cp ${GITHUB_WORKSPACE}/docker/Dockerfile ../workspace/ros2_openvino_toolkit_test ls ../workspace/ros2_openvino_toolkit_test/Dockerfile cd ../workspace/ros2_openvino_toolkit_test - docker build --build-arg ROS_PRE_INSTALLED_PKG=galactic-desktop --build-arg VERSION=galactic -t ros2_openvino_docker:01 . + docker build --build-arg ROS_PRE_INSTALLED_PKG=galactic-desktop --build-arg VERSION=galactic -t ros2_openvino_docker:01 . + docker run --name temp_ov ros2_openvino_docker:01 + docker ps + docker cp temp_ov:/root/catkin_ws/install ~/work/_temp/codeql_databases/cpp + docker rm temp_ov + tree ~/work/_temp/codeql_databases/ - name: Perform CodeQL Analysis diff --git a/docker/Dockerfile b/docker/Dockerfile index 5a53d585..16504c23 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,9 +1,11 @@ # ros2 openvino toolkit env master f1b1ca4d914186a1881b87f103be9c6e910c9d80 ARG ROS_PRE_INSTALLED_PKG +ARG BUILD_FOLDER FROM osrf/ros:${ROS_PRE_INSTALLED_PKG} -ARG VERSION +VOLUME [${BUILD_FOLDER}, "/root/catkin_ws"] +ARG VERSION # setting proxy env --option # If needed, enable the below ENV setting by correct proxies. # ENV HTTP_PROXY="your_proxy"