Skip to content

Commit

Permalink
Merge pull request #3254 from alphagov/remove-sanitisation-scripts
Browse files Browse the repository at this point in the history
Remove 'scrub access limited' SQL
  • Loading branch information
ChrisBAshton authored Sep 18, 2024
2 parents d0cabf5 + bdb8642 commit 9f2c706
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 96 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
ref: ${{ inputs.publishingApiRef }}
path: vendor/publishing-api

- name: Checkout govuk-helm-charts (for data sanitisation SQL)
uses: actions/checkout@v3
with:
repository: alphagov/govuk-helm-charts
path: vendor/govuk-helm-charts

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
95 changes: 0 additions & 95 deletions db/scrub_access_limited.sql

This file was deleted.

2 changes: 1 addition & 1 deletion spec/db/scrub_access_limited_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
RSpec.describe "Scrub Access Limited SQL Script" do
def execute_sql
sql = File.read(Rails.root.join("db/scrub_access_limited.sql"))
sql = File.read(Rails.root.join("vendor/govuk-helm-charts/charts/db-backup/scripts/content-publisher.sql"))
ActiveRecord::Base.connection.execute(sql)
end

Expand Down

0 comments on commit 9f2c706

Please sign in to comment.