Skip to content
Open
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
3 changes: 3 additions & 0 deletions .github/linters/trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
scan:
skip-dirs:
- "vendor/*"
2 changes: 2 additions & 0 deletions .github/workflows/base_image_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install script dependencies
run: pip install -r ./requirements.txt
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/build_test_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install script dependencies
run: pip install -r ./requirements.txt
Expand Down Expand Up @@ -47,6 +49,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false

- name: Write OpenStack credentials
run: echo "$OS_CLOUDS" > ./clouds.yaml
Expand Down Expand Up @@ -93,14 +96,18 @@ jobs:
run: sudo apt-get -y install libguestfs-tools

- name: mkdir for mount
run: sudo mkdir -p './${{ steps.publish-image.outputs.image-name }}'
run: sudo mkdir -p './${STEPS_PUBLISH_IMAGE_OUTPUTS_IMAGE_NAME}'
env:
STEPS_PUBLISH_IMAGE_OUTPUTS_IMAGE_NAME: ${{ steps.publish-image.outputs.image-name }}

- name: mount qcow2 file
run: >
sudo guestmount -a
${{ steps.publish-image.outputs.image-name }}.qcow2
"${STEPS_PUBLISH_IMAGE_OUTPUTS_IMAGE_NAME}.qcow2"
-i --ro -o allow_other
'./${{ steps.publish-image.outputs.image-name }}'
'./${STEPS_PUBLISH_IMAGE_OUTPUTS_IMAGE_NAME}'
env:
STEPS_PUBLISH_IMAGE_OUTPUTS_IMAGE_NAME: ${{ steps.publish-image.outputs.image-name }}

- name: Fail if scan has CRITICAL vulnerabilities
uses: aquasecurity/[email protected]
Expand Down Expand Up @@ -139,6 +146,8 @@ jobs:
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Read matrix outputs
id: matrix-outputs
Expand Down Expand Up @@ -252,6 +261,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install s3cmd
run: |
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/kubernetes_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install script dependencies
run: pip install -r ./requirements.txt
Expand Down Expand Up @@ -57,6 +59,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install script dependencies
run: pip install -r ./requirements.txt
Expand Down Expand Up @@ -94,6 +98,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false

- name: Check for most recent image-builder release
id: next
Expand All @@ -106,8 +111,10 @@ jobs:
working-directory: ./vendor/image-builder

- name: Update image-builder submodule
run: git checkout ${{ steps.next.outputs.version }}
run: git checkout "${STEPS_NEXT_OUTPUTS_VERSION}"
working-directory: ./vendor/image-builder
env:
STEPS_NEXT_OUTPUTS_VERSION: ${{ steps.next.outputs.version }}

- name: Generate app token for PR
uses: azimuth-cloud/github-actions/generate-app-token@master
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
# list of files that changed across commits
fetch-depth: 0
submodules: true
persist-credentials: false

- name: Run ansible-lint
uses: ansible/[email protected]
Expand All @@ -41,7 +42,7 @@ jobs:
if: always()

- name: Run super-linter
uses: super-linter/super-linter@v7.3.0
uses: super-linter/super-linter@v8.2.1
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install s3cmd
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/purge_defunct_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install script dependencies
run: pip install -r ./requirements.txt
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install s3cmd
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Check for most recent GitHub release
id: next
Expand Down
12 changes: 12 additions & 0 deletions super-linter.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,15 @@ VALIDATE_YAML_PRETTIER=false

# Set to the default filename for yamllint
YAML_CONFIG_FILE=.yamllint.yml

# Don't validate python files with Black as it conflicts
# with Ruff
VALIDATE_PYTHON_BLACK=false

# Don't validate files with Biome as it conflicts with
# many other linters
VALIDATE_BIOME_FORMAT=false
VALIDATE_BIOME_LINT=false

# Don't run Zizmor GHA linter and static analysis tool
VALIDATE_GITHUB_ACTIONS_ZIZMOR=false
Loading