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
10 changes: 5 additions & 5 deletions .github/workflows/build-images-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
permissions:
contents: read
id-token: write
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main # zizmor: ignore[unpinned-uses]
with:
image-name: 'ironic'
pushImage: true
Expand All @@ -34,7 +34,7 @@ jobs:
permissions:
contents: read
id-token: write
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main # zizmor: ignore[unpinned-uses]
with:
image-name: 'ironic_cs10'
pushImage: true
Expand All @@ -51,7 +51,7 @@ jobs:
permissions:
contents: read
id-token: write
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main # zizmor: ignore[unpinned-uses]
with:
image-name: 'sushy-tools'
dockerfile-directory: resources/sushy-tools
Expand All @@ -68,7 +68,7 @@ jobs:
permissions:
contents: read
id-token: write
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main # zizmor: ignore[unpinned-uses]
with:
image-name: 'vbmc'
dockerfile-directory: resources/vbmc
Expand All @@ -85,7 +85,7 @@ jobs:
permissions:
contents: read
id-token: write
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main # zizmor: ignore[unpinned-uses]
with:
image-name: 'ironic-client'
dockerfile-directory: resources/ironic-client
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/ironic-image-build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ on:
pull_request:
types: [ opened, edited, reopened, synchronize, ready_for_review ]

permissions: {}

jobs:
build:
runs-on: ${{ matrix.platform == 'linux/amd64' && 'ubuntu-latest' || matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm'}}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
Expand All @@ -20,6 +24,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
- name: Set base image
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/irso-functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ on:
pull_request:
types: [ opened, edited, reopened, synchronize, ready_for_review ]

permissions: {}

jobs:
test:
runs-on: oracle-vm-4cpu-16gb-x86-64
permissions:
checks: write
contents: read
env:
CLUSTER_TYPE: minikube
CONTAINER_RUNTIME: docker
Expand All @@ -22,10 +27,12 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: ironic-image
persist-credentials: false
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: metal3-io/ironic-standalone-operator
path: ironic-standalone-operator
persist-credentials: false
- name: Calculate go version
id: vars
run: echo "go_version=$(make -sC ironic-standalone-operator go-version)" >> $GITHUB_OUTPUT
Expand All @@ -47,7 +54,7 @@ jobs:
run: ironic-standalone-operator/test/collect-logs.sh
if: always()
- name: Upload logs artifacts
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: functional
path: /tmp/logs/*
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-gh-workflow-approve.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
name: Approve GH Workflows

on:
pull_request_target:
pull_request_target: # zizmor: ignore[dangerous-triggers]
types: [edited, labeled, reopened, synchronize]

permissions: {}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ permissions:

jobs:
check-pr-links:
uses: metal3-io/project-infra/.github/workflows/pr-link-check.yml@main
uses: metal3-io/project-infra/.github/workflows/pr-link-check.yml@main # zizmor: ignore[unpinned-uses]
with:
upstream: https://github.com/metal3-io/ironic-image.git
4 changes: 2 additions & 2 deletions .github/workflows/pr-verifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: PR Verifier
permissions: {}

on:
pull_request_target:
pull_request:
types: [ opened, edited, reopened, synchronize ]

jobs:
verify:
name: verify PR contents
uses: metal3-io/project-infra/.github/workflows/pr-verifier.yaml@main
uses: metal3-io/project-infra/.github/workflows/pr-verifier.yaml@main # zizmor: ignore[unpinned-uses]
19 changes: 12 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@ jobs:
uses: tj-actions/changed-files@7dee1b0c1557f278e5c7dc244927139d78c0e22a # v47.0.4
- name: Get release version
id: release-version
env:
STEPS_CHANGED_FILES_OUTPUTS_ALL_CHANGED_FILES_COUNT: ${{ steps.changed-files.outputs.all_changed_files_count }}
STEPS_CHANGED_FILES_OUTPUTS_ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
if [[ ${{ steps.changed-files.outputs.all_changed_files_count }} != 1 ]]; then
echo "1 release notes file should be changed to create a release tag, found ${{ steps.changed-files.outputs.all_changed_files_count }}"
if [[ "${STEPS_CHANGED_FILES_OUTPUTS_ALL_CHANGED_FILES_COUNT}" != "1" ]]; then
echo "1 release notes file should be changed to create a release tag, found ${STEPS_CHANGED_FILES_OUTPUTS_ALL_CHANGED_FILES_COUNT}"
exit 1
fi
for changed_file in ${{ steps.changed-files.outputs.all_changed_files }}; do
for changed_file in ${STEPS_CHANGED_FILES_OUTPUTS_ALL_CHANGED_FILES}; do
export RELEASE_VERSION=$(echo "${changed_file}" | grep -oP '(?<=/)[^/]+(?=\.md)')
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> ${GITHUB_ENV}
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> ${GITHUB_OUTPUT}
Expand Down Expand Up @@ -94,16 +97,18 @@ jobs:
with:
fetch-depth: 0
ref: ${{ env.RELEASE_TAG }}
persist-credentials: false
- name: Calculate go version
run: echo "go_version=$(make go-version)" >> ${GITHUB_ENV}
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: ${{ env.go_version }}
cache: false
- name: get release notes
run: |
curl -L "https://raw.githubusercontent.com/${{ github.repository }}/main/releasenotes/${{ env.RELEASE_TAG }}.md" \
-o "${{ env.RELEASE_TAG }}.md"
curl -fsSL "https://raw.githubusercontent.com/${{ github.repository }}/main/releasenotes/${RELEASE_TAG}.md" \
-o "${RELEASE_TAG}.md"
- name: Release
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
with:
Expand All @@ -117,7 +122,7 @@ jobs:
needs: push_release_tags
name: Build Ironic-image container image
if: github.repository == 'metal3-io/ironic-image'
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main # zizmor: ignore[unpinned-uses]
with:
image-name: 'ironic'
pushImage: true
Expand All @@ -135,7 +140,7 @@ jobs:
needs: push_release_tags
name: Build Ironic-image container image
if: github.repository == 'metal3-io/ironic-image'
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main # zizmor: ignore[unpinned-uses]
with:
image-name: 'ironic_cs10'
pushImage: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scheduled-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ permissions:

jobs:
check-links:
uses: metal3-io/project-infra/.github/workflows/scheduled-link-check.yml@main
uses: metal3-io/project-infra/.github/workflows/scheduled-link-check.yml@main # zizmor: ignore[unpinned-uses]
2 changes: 1 addition & 1 deletion .github/workflows/yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ on:
jobs:
yamllint-check:
name: yaml-lint
uses: metal3-io/project-infra/.github/workflows/yamllint.yaml@main
uses: metal3-io/project-infra/.github/workflows/yamllint.yaml@main # zizmor: ignore[unpinned-uses]
with:
ref: ${{ github.event.pull_request.head.sha }}
Loading