cloud-foundation-fabric/networking/decentralized-firewall/validator/action.yml

44 lines
1.3 KiB
YAML
Raw Normal View History

# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: 'Validate firewall rules'
description: 'Validate firewall rule YAML files'
inputs:
files:
description: 'Files to scan (supports wildcards)'
required: false
default: '/github/workspace/firewall/**/*.yaml'
mode:
description: 'Mode (validate or approve)'
required: false
default: 'validate'
schema:
description: 'Schema'
required: false
default: '/schemas/firewallSchema.yaml'
outputs:
ok:
description: 'Validation successful'
errors:
description: 'Validation results'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.files }}
- "--mode"
- ${{ inputs.mode }}
- "--schema"
- ${{ inputs.schema }}
- "--github"