Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

Commit d8f2a2a

Browse files
committed
fix(workflows): exclude renovate bot from CI job conditions
- Updated CI workflow conditions to prevent jobs from running if the actor is 'renovate[bot]'. - This change ensures that automated dependency updates do not trigger unnecessary CI jobs, improving efficiency.
1 parent e81ea09 commit d8f2a2a

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
name: Shell
8484
runs-on: ubuntu-latest
8585
needs: [changes]
86-
if: needs.changes.outputs.shell == 'true'
86+
if: needs.changes.outputs.shell == 'true' && github.actor != 'renovate[bot]'
8787
permissions:
8888
contents: read
8989
pull-requests: write
@@ -109,7 +109,7 @@ jobs:
109109
name: Workflows
110110
runs-on: ubuntu-latest
111111
needs: [changes]
112-
if: needs.changes.outputs.workflows == 'true'
112+
if: needs.changes.outputs.workflows == 'true' && github.actor != 'renovate[bot]'
113113
permissions:
114114
contents: read
115115
pull-requests: write
@@ -128,7 +128,7 @@ jobs:
128128
name: Docker
129129
runs-on: ubuntu-latest
130130
needs: [changes]
131-
if: needs.changes.outputs.docker == 'true'
131+
if: needs.changes.outputs.docker == 'true' && github.actor != 'renovate[bot]'
132132
permissions:
133133
contents: read
134134
pull-requests: write
@@ -149,7 +149,7 @@ jobs:
149149
name: YAML
150150
runs-on: ubuntu-latest
151151
needs: [changes]
152-
if: needs.changes.outputs.yaml == 'true'
152+
if: needs.changes.outputs.yaml == 'true' && github.actor != 'renovate[bot]'
153153
permissions:
154154
contents: read
155155
pull-requests: write
@@ -168,7 +168,7 @@ jobs:
168168
name: Docker Compose
169169
runs-on: ubuntu-latest
170170
needs: [changes]
171-
if: needs.changes.outputs.docker == 'true'
171+
if: needs.changes.outputs.docker == 'true' && github.actor != 'renovate[bot]'
172172
permissions:
173173
contents: read
174174
pull-requests: write
@@ -189,7 +189,7 @@ jobs:
189189
name: Security
190190
runs-on: ubuntu-latest
191191
needs: [changes]
192-
if: always()
192+
if: always() && github.actor != 'renovate[bot]'
193193
permissions:
194194
contents: read
195195
pull-requests: write

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
name: Validate
4343
needs: [changes]
4444
if: (needs.changes.outputs.docker == 'true' || github.event_name == 'workflow_dispatch')
45-
&& github.event_name == 'pull_request'
45+
&& github.event_name == 'pull_request' && github.actor != 'renovate[bot]'
4646
runs-on: ubuntu-latest
4747
permissions:
4848
contents: read

.github/workflows/security.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
dependencies:
8080
name: Dependencies
8181
runs-on: ubuntu-latest
82-
if: github.event_name == 'pull_request'
82+
if: github.event_name == 'pull_request' && github.actor != 'renovate[bot]'
8383
permissions:
8484
contents: read
8585
pull-requests: write
@@ -143,67 +143,67 @@ jobs:
143143
run: |
144144
echo "## 🔍 Shell Script Security Analysis"
145145
echo ""
146-
146+
147147
# Find all shell scripts
148148
SHELL_SCRIPTS=$(find . -name "*.sh" -o -name "*.bash" -o -name "*.zsh" | grep -v ".git" || echo "")
149-
149+
150150
if [ -z "$SHELL_SCRIPTS" ]; then
151151
echo "No shell scripts found for analysis"
152152
exit 0
153153
fi
154-
154+
155155
echo "Found shell scripts:"
156156
echo "$SHELL_SCRIPTS"
157157
echo ""
158-
158+
159159
# Security checks for shell scripts
160160
for script in $SHELL_SCRIPTS; do
161161
echo "### Analyzing: $script"
162-
162+
163163
# Check for common security issues
164164
echo "**Security Checks:**"
165-
165+
166166
# Check for hardcoded passwords/secrets
167167
if grep -n -i "password\|secret\|key\|token" "$script" | grep -v "#.*password\|#.*secret" | grep -v "echo.*password\|echo.*secret"; then
168168
echo "⚠️ Potential hardcoded credentials found"
169169
else
170170
echo "✅ No obvious hardcoded credentials"
171171
fi
172-
172+
173173
# Check for eval usage (dangerous)
174174
if grep -n "eval " "$script"; then
175175
echo "⚠️ Use of 'eval' detected (security risk)"
176176
else
177177
echo "✅ No 'eval' usage found"
178178
fi
179-
179+
180180
# Check for unquoted variables
181181
if grep -n "\$[a-zA-Z_][a-zA-Z0-9_]*[^\"' ]" "$script" | grep -v "echo\|printf\|test"; then
182182
echo "⚠️ Potentially unquoted variables found"
183183
else
184184
echo "✅ Variables appear properly quoted"
185185
fi
186-
186+
187187
# Check for rm -rf patterns
188188
if grep -n "rm.*-rf" "$script"; then
189189
echo "⚠️ 'rm -rf' usage detected (verify paths are safe)"
190190
else
191191
echo "✅ No dangerous rm patterns"
192192
fi
193-
193+
194194
# Check for curl/wget without SSL verification
195195
if grep -n "curl.*-k\|wget.*--no-check-certificate" "$script"; then
196196
echo "⚠️ SSL verification disabled in network requests"
197197
else
198198
echo "✅ SSL verification appears enabled"
199199
fi
200-
200+
201201
echo ""
202202
done
203203
{
204204
echo "## 🛡️ Additional Security Analysis"
205205
echo ""
206-
206+
207207
# Check for dangerous file permissions
208208
echo "**File Permission Analysis:**"
209209
DANGEROUS_PERMS=$(find . -type f -perm /o+w -not -path "./.git/*" 2>/dev/null || echo "")
@@ -213,7 +213,7 @@ jobs:
213213
else
214214
echo "✅ No world-writable files found"
215215
fi
216-
216+
217217
# Check for suid/sgid files
218218
SUID_FILES=$(find . -type f \( -perm -4000 -o -perm -2000 \) -not -path "./.git/*" 2>/dev/null || echo "")
219219
if [ -n "$SUID_FILES" ]; then
@@ -222,6 +222,6 @@ jobs:
222222
else
223223
echo "✅ No SUID/SGID files found"
224224
fi
225-
225+
226226
echo ""
227227
} >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)