Skip to content

Commit bfee96a

Browse files
committed
ci(release): fail workflow as a reminder to generate release notes
1 parent bffec05 commit bfee96a

2 files changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/docker-release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jobs:
4343
type=semver,pattern={{major}}
4444
type=sha
4545
- uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
46-
if: startsWith(github.ref, 'refs/tags/')
4746
with:
4847
username: ${{ secrets.DOCKERHUB_USERNAME }}
4948
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -74,3 +73,12 @@ jobs:
7473
images+=("${tag}@${DIGEST}")
7574
done
7675
cosign sign --recursive --yes "${images[@]}"
76+
- name: Manually generate release note
77+
shell: bash
78+
run: |
79+
set -euo pipefail
80+
IFS=$'\n\t'
81+
echo "This failure is expected. It is a reminder to update the release notes for this newly created release."
82+
echo "To do so, go to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/releases/latest and click on the edit button."
83+
echo "Then click on the 'Generate release notes' button and finally the 'Update release' button. Cheers!"
84+
exit 1

.zizmor.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ rules:
33
forbidden-uses:
44
config:
55
allow:
6+
- Azure/*
67
- actions/*
8+
- aws-actions/*
79
- docker/*
8-
- github/codeql-action/*
9-
- google/osv-scanner-action/*
10-
- microsoft/DevSkim-Action
11-
- microsoft/security-devops-action
12-
- ossf/scorecard-action
13-
- sigstore/cosign-installer
10+
- github/*
11+
- google-github-actions/*
12+
- google/*
13+
- googleapis/*
14+
- microsoft/*
15+
- ossf/*
16+
- sigstore/*
1417
- super-linter/super-linter

0 commit comments

Comments
 (0)