Skip to content

Commit 7556d92

Browse files
committed
chore(copier): apply template copier-safe-settings at v1.1.0
* deploy `safe-settings` using the test environment unless deploying from the default branch (main/master) * Note: the tool pulls the settings from the default branch always, so this is only a partial improvement in security/safety
1 parent d23a7d5 commit 7556d92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/safe-settings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
permissions:
1616
contents: read
1717
runs-on: ubuntu-24.04
18+
environment: ${{ github.ref_name == github.event.repository.default_branch && 'production' || 'test' }}
1819
env:
1920
# Version/tag of `github/safe-settings` repository to use:
2021
SAFE_SETTINGS_VERSION: ff7a65655d33006b9820479df0a9e1057a8927e4 # 2.1.17

0 commit comments

Comments
 (0)