Skip to content

Commit b109802

Browse files
authored
Merge pull request #883 from kitsudaiki/fix/fix-clippy-in-ci-again
related issue: #564
2 parents 7c49ebc + a35205b commit b109802

3 files changed

Lines changed: 17 additions & 18 deletions

File tree

.github/workflows/build_test.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
name: Install dependencies
3737
run: |
3838
sudo apt-get update
39-
sudo apt-get install -y protobuf-compiler
39+
sudo apt-get install -y protobuf-compiler gcc ssh curl pkg-config libssl-dev libsqlite3-dev
40+
sudo curl https://sh.rustup.rs -sSf | sh -s -- -y
4041
-
4142
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
4243
-
@@ -118,15 +119,19 @@ jobs:
118119
FORCE_COLOR: 1
119120
steps:
120121
-
121-
uses: earthly/actions-setup@b81a8e082d9fae6174210cfc6e54bd2feb124d94
122-
with:
123-
version: "latest"
122+
name: Install dependencies
123+
run: |
124+
sudo apt-get update
125+
sudo apt-get install -y git python3 python3-venv python3-pip
124126
-
125127
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
126128
-
127129
name: Run check
128-
run: earthly --ci +secret-scan
129-
130+
run: |
131+
python3 -m venv venv
132+
source venv/bin/activate
133+
pip3 install detect-secrets
134+
git ls-files -z | xargs -0 detect-secrets-hook --baseline .secrets.baseline
130135
131136
132137
build_python_package:

.secrets.baseline

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@
9090
{
9191
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
9292
},
93+
{
94+
"path": "detect_secrets.filters.common.is_baseline_file",
95+
"filename": ".secrets.baseline"
96+
},
9397
{
9498
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
9599
"min_level": 2
@@ -129,7 +133,7 @@
129133
"filename": ".github/workflows/build_test.yml",
130134
"hashed_secret": "f8c9ca2243c245951407ec16a1918a5ec6a070b4",
131135
"is_verified": false,
132-
"line_number": 409
136+
"line_number": 414
133137
}
134138
],
135139
".vscode/launch.json": [
@@ -590,5 +594,5 @@
590594
}
591595
]
592596
},
593-
"generated_at": "2026-03-24T11:34:22Z"
597+
"generated_at": "2026-04-23T16:41:57Z"
594598
}

Earthfile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ ansible-lint:
5050
RUN ansible-lint deploy/ansible/ainari
5151

5252

53-
secret-scan:
54-
RUN apt-get update && \
55-
apt-get install -y python3 python3-pip git python3-venv && \
56-
python3 -m venv check_env
57-
ENV PATH="/code/check_env/bin:$PATH"
58-
RUN pip3 install detect-secrets
59-
COPY . .
60-
RUN git ls-files -z | xargs -0 detect-secrets-hook --baseline .secrets.baseline
61-
62-
6353
prepare-build-dependencies:
6454
# install dependencies
6555
RUN apt-get update && \

0 commit comments

Comments
 (0)