cds-snc / url-shortener

An API written in Python that shortens URLs
MIT License
4 stars 0 forks source link

feat: switch to Design System CDN #385

Closed patheard closed 1 year ago

patheard commented 1 year ago

Summary

Update GC Design System CSS and JS to pull from the new CDN. Also pins to specific versions rather than @latest.

Related

github-actions[bot] commented 1 year ago

Staging: cloudfront

✅   Terraform Init: success ✅   Terraform Validate: success ✅   Terraform Format: success ✅   Terraform Plan: success ✅   Conftest: success

Plan: 0 to add, 1 to change, 0 to destroy
Show summary | CHANGE | NAME | |--------|---------------------------------------------------------------| | update | `aws_cloudfront_response_headers_policy.security_headers_api` |
Show plan ```terraform Resource actions are indicated with the following symbols: ~ update in-place Terraform will perform the following actions: # aws_cloudfront_response_headers_policy.security_headers_api will be updated in-place ~ resource "aws_cloudfront_response_headers_policy" "security_headers_api" { id = "71a3800d-8ea1-4800-ac12-2ae4e5d4a3c1" name = "url-shortener-security-headers-api" # (1 unchanged attribute hidden) ~ security_headers_config { ~ content_security_policy { ~ content_security_policy = "report-uri https://csp-report-to.security.cdssandbox.xyz/report; default-src 'none'; script-src 'self' 'unsafe-inline' https://unpkg.com/@cdssnc/ https://url-shortener.cdssandbox.xyz/static/js/ https://kit.fontawesome.com *.token.awswaf.com; font-src 'self' https://fonts.googleapis.com https://fonts.gstatic.com https://kit.fontawesome.com https://ka-f.fontawesome.com https://unpkg.com/font-awesome@4.7.0/; connect-src 'self' https://ka-f.fontawesome.com *.token.awswaf.com; img-src 'self' https://url-shortener.cdssandbox.xyz/static/img/ data: w3.org/svg/2000; style-src 'self' 'unsafe-inline' https://url-shortener.cdssandbox.xyz/static/css/ https://unpkg.com/@cdssnc/ https://unpkg.com/font-awesome/ https://kit.fontawesome.com https://fonts.googleapis.com; frame-ancestors 'self'; form-action 'self';" -> "report-uri https://csp-report-to.security.cdssandbox.xyz/report; default-src 'none'; script-src 'self' 'unsafe-inline' https://cdn.design-system.alpha.canada.ca/@cdssnc/ https://url-shortener.cdssandbox.xyz/static/js/ https://kit.fontawesome.com *.token.awswaf.com; font-src 'self' https://fonts.googleapis.com https://fonts.gstatic.com https://kit.fontawesome.com https://ka-f.fontawesome.com https://unpkg.com/font-awesome@4.7.0/; connect-src 'self' https://ka-f.fontawesome.com *.token.awswaf.com; img-src 'self' https://url-shortener.cdssandbox.xyz/static/img/ data: w3.org/svg/2000; style-src 'self' 'unsafe-inline' https://url-shortener.cdssandbox.xyz/static/css/ https://cdn.design-system.alpha.canada.ca/@cdssnc/ https://unpkg.com/font-awesome/ https://kit.fontawesome.com https://fonts.googleapis.com; frame-ancestors 'self'; form-action 'self';" # (1 unchanged attribute hidden) } # (5 unchanged blocks hidden) } } Plan: 0 to add, 1 to change, 0 to destroy. ───────────────────────────────────────────────────────────────────────────── Saved the plan to: plan.tfplan To perform exactly these actions, run the following command to apply: terraform apply "plan.tfplan" Releasing state lock. This may take a few moments... ```
Show Conftest results ```sh WARN - plan.json - main - Missing Common Tags: ["module.resolver_dns.aws_route53_resolver_firewall_rule_group_association.firewall_rules[0]"] WARN - plan.json - main - Missing Common Tags: ["module.resolver_dns.aws_route53_resolver_query_log_config.route53_vpc_dns"] 19 tests, 17 passed, 2 warnings, 0 failures, 0 exceptions ```