-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ISD-2620-allure
- Loading branch information
Showing
36 changed files
with
19,842 additions
and
15,369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,11 +39,6 @@ on: | |
Each mapping will be injected into the matrix section of the integration-test. | ||
type: string | ||
default: "{}" | ||
image-build-args: | ||
description: | | ||
List of build args to pass to the build image job | ||
type: string | ||
default: "" | ||
juju-channel: | ||
description: Actions operator juju channel as per https://github.com/charmed-kubernetes/actions-operator#usage | ||
type: string | ||
|
@@ -183,7 +178,7 @@ on: | |
zap-target-port: | ||
description: ZAP target port | ||
type: string | ||
default: 80 | ||
default: '80' | ||
zap-target-protocol: | ||
description: ZAP target protocol | ||
type: string | ||
|
@@ -219,7 +214,7 @@ jobs: | |
matrix: | ||
build: ${{ fromJSON(needs.plan.outputs.plan).build }} | ||
steps: | ||
- uses: canonical/[email protected].1 | ||
- uses: canonical/[email protected].2 | ||
- name: Set LXC security nesting | ||
if: ${{ inputs.rockcraft-enable-security-nesting }} | ||
run: | | ||
|
@@ -285,15 +280,14 @@ jobs: | |
docker image pull ${{ matrix.scan.image }} | ||
docker image save -o ${{ matrix.scan.file }} ${{ matrix.scan.image }} | ||
- name: Run Github Trivy Image Action | ||
uses: aquasecurity/trivy-action@0.28.0 | ||
uses: aquasecurity/trivy-action@0.29.0 | ||
with: | ||
input: ${{ matrix.scan.file }} | ||
trivy-config: ${{ inputs.trivy-image-config }} | ||
exit-code: '1' | ||
severity: ${{ inputs.trivy-severity-config }} | ||
env: | ||
TRIVY_USERNAME: ${{ github.actor }} | ||
TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | ||
TRIVY_DISABLE_VEX_NOTICE: true | ||
- name: Check trivyignore | ||
run: | | ||
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v0.46.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,7 @@ jobs: | |
- name: Select charmhub channel | ||
uses: canonical/charming-actions/[email protected] | ||
id: select-channel | ||
continue-on-error: true | ||
publish-charm: | ||
name: Publish charm to ${{ inputs.channel || needs.select-channel.outputs.destination-channel }} | ||
runs-on: ubuntu-latest | ||
|
@@ -114,8 +115,11 @@ jobs: | |
id: docs-exist | ||
run: echo "docs_exist=$([[ -d docs ]] && echo 'True' || echo 'False')" >> $GITHUB_OUTPUT | ||
- name: Publish documentation | ||
if: steps.docs-exist.outputs.docs_exist == 'True' | ||
if: ${{ steps.docs-exist.outputs.docs_exist == 'True' && env.discourse_api_username != '' && env.discourse_api_key != '' }} | ||
uses: canonical/discourse-gatekeeper@stable | ||
env: | ||
discourse_api_username: ${{ secrets.DISCOURSE_API_USERNAME }} | ||
discourse_api_key: ${{ secrets.DISCOURSE_API_KEY }} | ||
with: | ||
discourse_host: discourse.charmhub.io | ||
discourse_api_username: ${{ secrets.DISCOURSE_API_USERNAME }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,6 +93,31 @@ jobs: | |
filter-mode: nofilter | ||
workdir: ${{ inputs.working-directory }} | ||
woke-version: latest | ||
vale: | ||
name: Style checker | ||
runs-on: >- | ||
${{ | ||
inputs.self-hosted-runner && | ||
fromJson(format('[''self-hosted'', ''{0}'', ''{1}'', ''{2}'']', | ||
inputs.self-hosted-runner-arch, inputs.self-hosted-runner-label, inputs.self-hosted-runner-image | ||
)) || 'ubuntu-22.04' | ||
}} | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ${{ inputs.working-directory }} | ||
steps: | ||
- name: Checkout repo to runner | ||
uses: actions/[email protected] | ||
- run: | | ||
sudo apt-get update -y && sudo apt-get install -y tree ruby-rubygems | ||
- name: Install styles | ||
uses: canonical/praecepta@main | ||
- name: Run Vale tests | ||
uses: errata-ai/vale-action@reviewdog | ||
with: | ||
files: ${{ inputs.charm-directory }}/docs | ||
fail_on_error: false | ||
shellcheck-lint: | ||
name: Shell scripts lint | ||
runs-on: >- | ||
|
@@ -301,7 +326,7 @@ jobs: | |
const sha = '${{ github.event.pull_request.head.sha }}'; | ||
const fs = require('fs'); | ||
const result = JSON.parse(fs.readFileSync('${{ inputs.working-directory }}test-result.json')).testenvs; | ||
const result = JSON.parse(fs.readFileSync('${{ inputs.working-directory }}/test-result.json')).testenvs; | ||
let lint_result = result.lint.test; | ||
let lint_success = true; | ||
|
@@ -368,8 +393,11 @@ jobs: | |
id: docs-exist | ||
run: echo "docs_exist=$([[ -d docs ]] && echo 'True' || echo 'False')" >> $GITHUB_OUTPUT | ||
- name: Publish documentation | ||
if: ${{ steps.docs-exist.outputs.docs_exist == 'True' && !github.event.pull_request.head.repo.fork }} | ||
if: ${{ steps.docs-exist.outputs.docs_exist == 'True' && !github.event.pull_request.head.repo.fork && env.discourse_api_username != '' && env.discourse_api_key != '' }} | ||
uses: canonical/discourse-gatekeeper@stable | ||
env: | ||
discourse_api_username: ${{ secrets.DISCOURSE_API_USERNAME }} | ||
discourse_api_key: ${{ secrets.DISCOURSE_API_KEY }} | ||
with: | ||
discourse_host: discourse.charmhub.io | ||
discourse_api_username: ${{ secrets.DISCOURSE_API_USERNAME }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20.18.0 | ||
22.11.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.