File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ ENV PYTHONPATH /app
33ENV PYTHONUNBUFFERED 1
44ENV PYTHONDONTWRITEBYTECODE 1
55
6- ADD . /app
6+ COPY . /app
77WORKDIR /app
88
9- # install curl
10- RUN apt-get update
11- RUN apt-get install -y curl git
9+ # install curl; skipcq: DOK-DL3008
10+ RUN apt-get update && apt-get install -y curl git && apt-get clean && rm -rf /var/lib/apt/lists/*
11+ SHELL [ "/bin/bash" , "-o" , "pipefail" , "-c" ]
1212
1313# download the DeepSource CLI binary
14- RUN curl https://deepsource.io/cli | sh
14+ RUN curl https://deepsource.io/cli | bash
1515RUN ["chmod" , "777" , "/app/main.py" ]
1616
1717CMD ["/app/main.py" ]
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22# -*- coding: utf-8 -*-
33import os
4- import subprocess
4+ import subprocess # skipcq: BAN-B404
55import sys
66
77# input for the actions are converted to names of a specific format by GitHub
@@ -42,6 +42,7 @@ def main() -> None:
4242 # change the current working directory to the GitHub repository's context
4343 os .chdir (GITHUB_WORKSPACE_PATH )
4444
45+ # skipcq: BAN-B603, PYL-W1510
4546 process = subprocess .run (
4647 command ,
4748 env = dict (os .environ , DEEPSOURCE_DSN = input_data ["dsn" ]),
You can’t perform that action at this time.
0 commit comments