Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 35ae05e

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 35ae05e

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/testing.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,31 @@ 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 to ~/perl5/bin
4140
curl -L https://cpanmin.us | perl - App::cpanminus
41+
42+
# Add perl5/bin to PATH for this step and subsequent ones
43+
export PATH="$HOME/perl5/bin:$PATH"
44+
echo "$HOME/perl5/bin" >> $GITHUB_PATH
45+
46+
# Setup local::lib
4247
cpanm --local-lib=~/perl5 local::lib
4348
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
49+
50+
# Install Carmel
4451
cpanm Carmel
4552
4653
- name: Install project dependencies
4754
run: |
4855
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
49-
export PATH="$HOME/perl5/bin:$PATH"
5056
carmel install
5157
5258
- name: Run tests
5359
run: |
5460
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
55-
export PATH="$HOME/perl5/bin:$PATH"
5661
carmel exec -- prove -l t/

0 commit comments

Comments
 (0)