Skip to content

Commit aa0f91b

Browse files
Fix DeepSource issues
1 parent b08d63a commit aa0f91b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ ENV PYTHONPATH /app
33
ENV PYTHONUNBUFFERED 1
44
ENV PYTHONDONTWRITEBYTECODE 1
55

6-
ADD . /app
6+
COPY . /app
77
WORKDIR /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
1515
RUN ["chmod", "777", "/app/main.py"]
1616

1717
CMD ["/app/main.py"]

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
import os
4-
import subprocess
4+
import subprocess # skipcq: BAN-B404
55
import 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"]),

0 commit comments

Comments
 (0)