3 Commits

Author SHA1 Message Date
dependabot[bot]
29efee9147 Bump sigstore/cosign-installer from 3.8.2 to 4.0.0
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.8.2 to 4.0.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.8.2...v4.0.0)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-01 04:14:14 +00:00
Max Konrädi
47d29529e9 chore: Changelog 2025-08-13 15:19:14 +02:00
Max Konrädi
97c74a94a7 Revert "feat: add restic check after forget with prune"
This reverts commit 5f2b322e54.
2025-08-13 15:15:37 +02:00
3 changed files with 5 additions and 22 deletions

View File

@@ -39,7 +39,7 @@ jobs:
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@v3.8.2
uses: sigstore/cosign-installer@v4.0.0
with:
cosign-release: 'v2.4.3'

View File

@@ -1,5 +1,9 @@
# Changelog
## v1.4.2
### Removed
* Execute a repository check after prune was passed as a parameter in the forget call - use RESTIC_CHECK_CRON Var instead
## v1.4.1
### Changed
* Execute a repository check after prune was passed as a parameter in the forget call

View File

@@ -48,8 +48,6 @@ else
copyErrorLog
fi
forgetSuccess=false
if [[ $backupRC == 0 ]] && [ -n "${RESTIC_FORGET_ARGS}" ]; then
echo "Forget about old snapshots based on RESTIC_FORGET_ARGS = ${RESTIC_FORGET_ARGS}"
restic forget ${RESTIC_FORGET_ARGS} >> ${lastLogfile} 2>&1
@@ -57,28 +55,9 @@ if [[ $backupRC == 0 ]] && [ -n "${RESTIC_FORGET_ARGS}" ]; then
logLast "Finished forget at $(date)"
if [[ $rc == 0 ]]; then
echo "Forget Successful"
forgetSuccess=true
else
echo "Forget Failed with Status ${rc}"
restic unlock
forgetSuccess=false
copyErrorLog
fi
fi
echo "$RESTIC_FORGET_ARGS" | grep -q prune
wasPruneRC=$?
if [ "$forgetSuccess" = true ] && [ $wasPruneRC -eq 0 ]; then
echo "Checking repository after forget / prune"
restic check >> ${lastLogfile} 2>&1
rc=$?
logLast "Finished check at $(date)"
if [ $rc = 0 ]; then
echo "Check Successful"
else
echo "Check Failed with Status ${rc}"
restic unlock
copyErrorLog
fi
fi