Skip to content

Commit cf06a87

Browse files
committed
ci: fix GitHub Actions workflow to use only trusted actions
Replace shogo82148/actions-setup-perl@v1 with manual Perl setup to comply with organization security policy that requires actions to be from GitHub, verified marketplace, or torrust-owned repositories. - Use system Perl instead of third-party setup action - Install cpanminus, local::lib, and Carmel manually - Maintain same functionality while meeting security requirements
1 parent 1b8574d commit cf06a87

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/testing.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,30 @@ jobs:
3131
- name: Checkout code
3232
uses: actions/checkout@v4
3333

34-
- name: Setup Perl
35-
uses: shogo82148/actions-setup-perl@v1
36-
with:
37-
perl-version: "5.20"
38-
39-
- name: Install cpanminus and Carmel
34+
- name: Install Perl and dependencies
4035
run: |
36+
# Ubuntu already has Perl 5.34+ installed
37+
perl -v
38+
39+
# Install cpanminus
4140
curl -L https://cpanmin.us | perl - App::cpanminus
41+
42+
# Setup local::lib
4243
cpanm --local-lib=~/perl5 local::lib
4344
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
45+
46+
# Install Carmel
4447
cpanm Carmel
4548
49+
# Add to PATH for subsequent steps
50+
echo "$HOME/perl5/bin" >> $GITHUB_PATH
51+
4652
- name: Install project dependencies
4753
run: |
4854
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
49-
export PATH="$HOME/perl5/bin:$PATH"
5055
carmel install
5156
5257
- name: Run tests
5358
run: |
5459
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
55-
export PATH="$HOME/perl5/bin:$PATH"
5660
carmel exec -- prove -l t/

0 commit comments

Comments
 (0)