Skip to content

Delete Security Services #9

Delete Security Services

Delete Security Services #9

Workflow file for this run

name: Delete Security Services
on:
workflow_dispatch:
inputs:
services:
description: 'Specify the services to delete (access-analyser, guard-duty, inspector, macie, securityhub, detective, config). Use a comma to separate multiple services.'
required: true
permissions:
id-token: write
contents: read
jobs:
validate-services:
runs-on: ubuntu-latest
outputs:
services: ${{ steps.set-services.outputs.services }}
steps:
- name: Set services from input
id: set-services
run: |
if [[ -z "${{ github.event.inputs.services }}" ]]; then
echo "No services specified. Skipping deletion."
echo "::set-output name=services::none"
else
echo "::set-output name=services::${{ github.event.inputs.services }}"
AccessAnalyser:
needs: validate-services
if: contains(needs.validate-services.outputs.services, 'access-analyser')
uses: ./.github/workflows/stackset_workflow.yml

Check failure on line 32 in .github/workflows/delete_stack.yml

View workflow run for this annotation

GitHub Actions / Delete Security Services

Invalid workflow file

The workflow is not valid. In .github/workflows/delete_stack.yml (Line: 32, Col: 11): Error from called workflow pranaydeokar/docker-scan/.github/workflows/stackset_workflow.yml@846551292c551ed51f6e623a363f2b712ca7564a (Line: 23, Col: 18): Unexpected value 'false' .github/workflows/delete_stack.yml (Line: 35, Col: 30): Invalid input, stack-instance-region is not defined in the referenced workflow.
with:
stack-set-name: Access-analyser
stack-instance-region: us-east-1
secrets:
AWS_ROLE_TO_ASSUME: ${{ secrets.AWS_GITHUB_OIDC_ROLE }}
account-ids: ${{ secrets.ACCOUNT_IDS }}
GuardDuty:
needs: validate-services
if: contains(needs.validate-services.outputs.services, 'guard-duty')
uses: ./.github/workflows/stackset_workflow.yml
with:
stack-set-name: GuardDuty
stack-instance-region: us-east-1
secrets:
AWS_ROLE_TO_ASSUME: ${{ secrets.AWS_GITHUB_OIDC_ROLE }}
account-ids: ${{ secrets.ACCOUNT_IDS }}