Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
with:
python-version: '3.11'

Expand All @@ -30,7 +30,7 @@ jobs:
pip install buildozer cython==0.29.36

- name: Cache Buildozer
uses: actions/cache@v4
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: |
.buildozer
Expand All @@ -41,7 +41,7 @@ jobs:
run: buildozer android debug

- name: Upload APK
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8
with:
name: blacky-apk
path: bin/*.apk
Expand Down
44 changes: 44 additions & 0 deletions fix_actions_compliance.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/usr/bin/env bash
set -euo pipefail

WORKFLOW_DIR=".github/workflows"
BACKUP_DIR=".github/workflows_backup_$(date +%Y%m%d_%H%M%S)"

echo "🚦 Actions Compliance Fix gestartet"
echo "📁 Workflows: $WORKFLOW_DIR"
echo "🗂 Backup: $BACKUP_DIR"
echo

mkdir -p "$BACKUP_DIR"
cp -r "$WORKFLOW_DIR"/*.yml "$BACKUP_DIR"/ 2>/dev/null || true

declare -A ACTION_SHAS=(
["actions/checkout@v4"]="actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11"
["actions/setup-python@v5"]="actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d"
["actions/cache@v4"]="actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9"
["actions/upload-artifact@v4"]="actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3"
)

FOUND=0

for file in "$WORKFLOW_DIR"/*.yml; do
echo "🔎 Prüfe $file"
for action in "${!ACTION_SHAS[@]}"; do
if grep -q "$action" "$file"; then
echo " ❌ Ersetze $action"
sed -i "s|$action|${ACTION_SHAS[$action]}|g" "$file"
FOUND=1
fi
done
done

echo
if [[ "$FOUND" -eq 1 ]]; then
echo "✅ Fix abgeschlossen. Änderungen vorgenommen."
echo "➡️ Jetzt ausführen:"
echo " git diff"
echo " git commit -am \"chore(ci): pin GitHub Actions to SHAs\""
echo " git push"
else
echo "🟢 Keine verbotenen Actions gefunden. Alles sauber."
fi
Loading