@@ -384,6 +384,42 @@ resource "github_actions_organization_secret" "STATIC_BUCKET_REGION" {
384384 visibility = " all"
385385}
386386
387+ data "github_repository" "geoshenanigans" {
388+ full_name = " immich-app/geoshenanigans"
389+ }
390+
391+ data "onepassword_item" "TIGRIS_WRITE_KEY_ID" {
392+ title = " TIGRIS_WRITE_KEY_ID"
393+ vault = data. onepassword_vault . tf . name
394+ }
395+
396+ resource "github_actions_organization_secret" "TIGRIS_WRITE_KEY_ID" {
397+ secret_name = " TIGRIS_WRITE_KEY_ID"
398+ plaintext_value = data. onepassword_item . TIGRIS_WRITE_KEY_ID . password
399+ visibility = " selected"
400+ }
401+
402+ resource "github_actions_organization_secret_repositories" "TIGRIS_WRITE_KEY_ID" {
403+ secret_name = github_actions_organization_secret. TIGRIS_WRITE_KEY_ID . secret_name
404+ selected_repository_ids = [data . github_repository . geoshenanigans . repo_id ]
405+ }
406+
407+ data "onepassword_item" "TIGRIS_WRITE_ACCESS_KEY" {
408+ title = " TIGRIS_WRITE_ACCESS_KEY"
409+ vault = data. onepassword_vault . tf . name
410+ }
411+
412+ resource "github_actions_organization_secret" "TIGRIS_WRITE_ACCESS_KEY" {
413+ secret_name = " TIGRIS_WRITE_ACCESS_KEY"
414+ plaintext_value = data. onepassword_item . TIGRIS_WRITE_ACCESS_KEY . password
415+ visibility = " selected"
416+ }
417+
418+ resource "github_actions_organization_secret_repositories" "TIGRIS_WRITE_ACCESS_KEY" {
419+ secret_name = github_actions_organization_secret. TIGRIS_WRITE_ACCESS_KEY . secret_name
420+ selected_repository_ids = [data . github_repository . geoshenanigans . repo_id ]
421+ }
422+
387423data "onepassword_item" "OUTLINE_API_KEY" {
388424 title = " OUTLINE_API_KEY"
389425 vault = data. onepassword_vault . tf . name
0 commit comments