File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : build-fork-image
2+
3+ permissions :
4+ contents : read
5+ packages : write
6+
7+ on :
8+ push :
9+ branches :
10+ - ' plugins'
11+
12+ jobs :
13+ build_bmo :
14+ name : Build and push fork BMO image to GHCR
15+ if : github.repository != 'metal3-io/baremetal-operator'
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout code
19+ uses : actions/checkout@v6
20+ with :
21+ persist-credentials : false
22+
23+ - name : Calculate Go version
24+ id : vars
25+ run : echo "go_version=$(make go-version)" >> "$GITHUB_OUTPUT"
26+
27+ - name : Set up Go
28+ uses : actions/setup-go@v6
29+ with :
30+ go-version : ${{ steps.vars.outputs.go_version }}
31+
32+ - name : Log in to GHCR
33+ uses : docker/login-action@v4
34+ with :
35+ registry : ghcr.io
36+ username : ${{ github.actor }}
37+ password : ${{ secrets.GITHUB_TOKEN }}
38+
39+ - name : Build image
40+ run : make docker-build
41+ env :
42+ REGISTRY : ghcr.io/${{ github.repository_owner }}
43+ IMG_TAG : ${{ github.ref_name }}
44+
45+ - name : Push image
46+ run : docker push ghcr.io/${{ github.repository_owner }}/baremetal-operator-amd64:${{ github.ref_name }}
Original file line number Diff line number Diff line change 1+ ---
2+ # zizmor configuration — see https://docs.zizmor.sh/configuration/
3+ #
4+ # Fork-only workflow that builds and publishes the plugins-branch image
5+ # to GHCR. Kept intentionally lightweight; excluded from zizmor wholesale
6+ # here so any future additions don't tangle with upstream audit policy.
7+ rules :
8+ unpinned-uses :
9+ ignore :
10+ - build-fork-image.yml
11+ template-injection :
12+ ignore :
13+ - build-fork-image.yml
14+ artipacked :
15+ ignore :
16+ - build-fork-image.yml
17+ excessive-permissions :
18+ ignore :
19+ - build-fork-image.yml
20+ github-env :
21+ ignore :
22+ - build-fork-image.yml
23+ cache-poisoning :
24+ ignore :
25+ - build-fork-image.yml
26+ unredacted-secrets :
27+ ignore :
28+ - build-fork-image.yml
29+ dangerous-triggers :
30+ ignore :
31+ - build-fork-image.yml
32+ secrets-inherit :
33+ ignore :
34+ - build-fork-image.yml
35+ overprovisioned-secrets :
36+ ignore :
37+ - build-fork-image.yml
38+ hardcoded-container-credentials :
39+ ignore :
40+ - build-fork-image.yml
41+ ref-confusion :
42+ ignore :
43+ - build-fork-image.yml
44+ impostor-commit :
45+ ignore :
46+ - build-fork-image.yml
47+ known-vulnerable-actions :
48+ ignore :
49+ - build-fork-image.yml
50+ bot-conditions :
51+ ignore :
52+ - build-fork-image.yml
53+ self-hosted-runner :
54+ ignore :
55+ - build-fork-image.yml
56+ unsound-contains :
57+ ignore :
58+ - build-fork-image.yml
59+ forbidden-uses :
60+ ignore :
61+ - build-fork-image.yml
62+ anonymous-definition :
63+ ignore :
64+ - build-fork-image.yml
65+ stale-action-refs :
66+ ignore :
67+ - build-fork-image.yml
68+ obfuscation :
69+ ignore :
70+ - build-fork-image.yml
You can’t perform that action at this time.
0 commit comments