Skip to content

Commit

Permalink
Merge pull request #110 from guardian/update-panda-to-v7
Browse files Browse the repository at this point in the history
Update panda to v7
  • Loading branch information
emdash-ie authored Feb 7, 2025
2 parents a5da9f8 + d4f361d commit ebfc084
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 74 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ jobs:
runs-on: ubuntu-latest

permissions:
# Allow GitHub to request an OIDC JWT ID token, for exchange with `aws-actions/configure-aws-credentials`
# See https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services#updating-your-github-actions-workflow
# id-token and pull-requests required by actions-riff-raff
id-token: write

pull-requests: write
# Required for `actions/checkout`
contents: read

Expand All @@ -40,11 +39,7 @@ jobs:
npm install
npm run build
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'corretto'
cache: 'sbt'
- uses: guardian/setup-scala@v1

- name: Scala Build
run: |
Expand All @@ -54,17 +49,13 @@ jobs:
run: |
mv target/restorer2_1.0.0_all.deb restorer2.deb
# Fetch AWS credentials, allowing us to upload to Riff-Raff (well, S3)
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
aws-region: eu-west-1

# Upload our build artifacts to Riff-Raff (well, S3)
- uses: guardian/actions-riff-raff@v2
- uses: guardian/actions-riff-raff@v4
with:
projectName: editorial-tools:flexible:restorer2
buildNumber: ${{ env.BUILD_NUMBER }}
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
configPath: riff-raff.yaml
contentDirectories: |
restorer2:
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/snyk.yml

This file was deleted.

1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java corretto-11.0.25.9.1
8 changes: 3 additions & 5 deletions app/AppComponents.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import com.gu.AppIdentity
import com.gu.pandomainauth.PanDomainAuthSettingsRefresher
import com.gu.pandomainauth.{PanDomainAuthSettingsRefresher, S3BucketLoader}
import com.gu.permissions.{PermissionsConfig, PermissionsProvider}
import config.AppConfig
import config.AWS._
Expand Down Expand Up @@ -27,12 +27,10 @@ class AppComponents(context: Context, identity: AppIdentity) extends BuiltInComp
awsCredentials = credentialsV1
))

val panDomainSettings: PanDomainAuthSettingsRefresher = new PanDomainAuthSettingsRefresher(
val panDomainSettings: PanDomainAuthSettingsRefresher = PanDomainAuthSettingsRefresher(
domain = config.domain,
system = "restorer",
bucketName = "pan-domain-auth-settings",
settingsFileKey = s"${config.domain}.settings",
s3Client = S3ClientV1
S3BucketLoader.forAwsSdkV1(S3ClientV1, "pan-domain-auth-settings")
)

val snapshotApi = new SnapshotApi(s3Client)
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ object Dependencies {
)

val guardianDependencies = Seq(
"com.gu" %% "pan-domain-auth-play_3-0" % "4.0.0",
"com.gu" %% "pan-domain-auth-play_3-0" % "7.0.0",
"com.gu" %% "editorial-permissions-client" % "2.15",
"com.gu" %% "simple-configuration-ssm" % "2.0.0"
)
Expand Down
35 changes: 0 additions & 35 deletions teamcity.sh

This file was deleted.

0 comments on commit ebfc084

Please sign in to comment.