Skip to content

Commit 23dedac

Browse files
authored
fix: updates version tags (#36)
* updates version tags * harden the actions * harden the actions
1 parent 651f80e commit 23dedac

File tree

3 files changed

+23
-12
lines changed

3 files changed

+23
-12
lines changed

.github/workflows/publish-pod.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
name: Publish CocoaPod
2-
2+
permissions:
3+
contents: read
34
on:
4-
push:
5-
# runs on anything like v1.2.3
6-
tags:
7-
- "v*.*.*"
5+
release:
6+
types: [released]
87

98
jobs:
109
publish-pod:
1110
runs-on: macos-latest
1211
steps:
13-
# 1. Check out your code
14-
- uses: actions/checkout@v3
12+
- name: Harden the runner (Audit all outbound calls)
13+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
14+
with:
15+
egress-policy: audit
16+
17+
# 1. Checkout repository
18+
- name: Checkout repository
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1520

1621
# 2. Install a recent Ruby
17-
- uses: ruby/setup-ruby@v1
22+
- uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0
1823
with:
1924
ruby-version: 3.4.3
2025

.github/workflows/sonarqube.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: SonarQube
2-
2+
permissions:
3+
contents: read
34
on:
45
workflow_dispatch:
56
push:
@@ -14,8 +15,13 @@ jobs:
1415
runs-on: macos-15
1516

1617
steps:
17-
- name: Checkout code
18-
uses: actions/checkout@v3
18+
- name: Harden the runner (Audit all outbound calls)
19+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
20+
with:
21+
egress-policy: audit
22+
23+
- name: Checkout repository
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1925
with:
2026
fetch-depth: 0 # Shallow clones should be disabled for better SonarQube analysis
2127

FormbricksSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Pod::Spec.new do |s|
66
s.license = { :type => "MIT", :file => "LICENSE" }
77
s.author = { "Formbricks" => "[email protected]" }
88
s.platform = :ios, "16.6"
9-
s.source = { :git => "https://github.com/formbricks/ios.git", :tag => "v#{s.version}" }
9+
s.source = { :git => "https://github.com/formbricks/ios.git", :tag => s.version }
1010
s.swift_version = "5.7"
1111
s.requires_arc = true
1212
s.source_files = "Sources/FormbricksSDK/**/*.{swift}"

0 commit comments

Comments
 (0)