diff --git a/.fossa.yml b/.fossa.yml new file mode 100644 index 0000000000..5b3ffc108f --- /dev/null +++ b/.fossa.yml @@ -0,0 +1,21 @@ +version: 3 +project: + locator: SolaceDev_aws-load-balancer-controller + id: SolaceDev_aws-load-balancer-controller + name: aws-load-balancer-controller + teams: [] + labels: + - go +vendoredDependencies: + forceRescans: false + scanMethod: CLILicenseScan + licenseScanPathFilters: + exclude: + - "./.git" + - "./.github" +paths: + exclude: + - ./.git + - ./.github +telemetry: + scope: full diff --git a/.github/workflow-config.json b/.github/workflow-config.json new file mode 100644 index 0000000000..62db297459 --- /dev/null +++ b/.github/workflow-config.json @@ -0,0 +1,15 @@ +{ + "sca_scanning": { + "fossa": { + "policy": { "mode": "REPORT" }, + "vulnerability": { "mode": "REPORT" } + }, + "secrets": { + "vault": { + "url": "https://vault.maas-vault-prod.solace.cloud:8200", + "secret_path": "secret/data/tools/githubactions", + "role": "cicd-workflows-secret-read-role" + } + } + } +} diff --git a/.github/workflows/sca-scan-and-guard.yml b/.github/workflows/sca-scan-and-guard.yml new file mode 100644 index 0000000000..70e021b955 --- /dev/null +++ b/.github/workflows/sca-scan-and-guard.yml @@ -0,0 +1,52 @@ +name: SCA Scan on merge to main +on: + push: + branches: [main] + +permissions: + contents: read + id-token: write + packages: read + actions: read + statuses: write + checks: write + pull-requests: write + +jobs: + sca_scan: + uses: SolaceDev/solace-public-workflows/.github/workflows/sca-scan-and-guard.yaml@main + with: + use_vault: true + config_file: '.github/workflow-config.json' + + update_manifest: + needs: sca_scan + if: needs.sca_scan.result == 'success' && github.ref_name == github.event.repository.default_branch + runs-on: ubuntu-latest + permissions: + id-token: write + contents: read + packages: read + steps: + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4 + with: + role-to-assume: arn:aws:iam::868978040651:role/github-solace-cloud-manifest-rw + aws-region: us-east-1 + + - name: Update solace-cloud-manifest + uses: SolaceDev/solace-public-workflows/.github/actions/cicd-helper@main + with: + rc_step: add_item_from_json_to_dynamodb_table + ddb_table_name: solace-cloud-manifest + ddb_partition_key: squad + ddb_sort_key: repository + ddb_item_to_be_added: | + { + "squad": "launch-pad", + "repository": "${{ github.event.repository.name }}", + "dev": { + "sha": "${{ github.sha }}", + "version": "${{ github.ref_name }}" + } + }