Is there a change for loading .env and .secrets file? #2504
-
Hi everyone, I noticed my local workflow stopped working and I was getting a lot of error complaining the env and secrets are Unknown
I have check-global-configs:
name: Check global configs
runs-on: ubuntu-latest
strategy:
matrix:
env: [dev]
include:
- env: dev
ADMIN_API_URL: ${{ secrets.DEV_ADMIN_API_URL }} This used to work pretty well... Does anyone know what had changed? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
ok. Something had changed. Version 0.2.67 does not pick up ➜ act --version
act version 0.2.67
➜ act pull_request -W '.github/workflows/onboarding_pr.yaml'
INFO[0000] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock'
Error: workflow is not valid. 'onboarding_pr.yaml': Line: 79 Column 5: Failed to match job-factory: Line: 87 Column 28: Unknown Variable Access secrets
Line: 88 Column 36: Unknown Variable Access secrets
Line: 96 Column 21: Unknown Variable Access env
Line: 79 Column 5: Failed to match workflow-job: Line: 81 Column 5: Unknown Property runs-on
Line: 87 Column 28: Unknown Variable Access secrets
Line: 88 Column 36: Unknown Variable Access secrets
Line: 95 Column 5: Unknown Property env
Line: 98 Column 5: Unknown Property steps An older version runs fine ➜ ./act --version
act version 0.2.48
➜ ./act pull_request -W '.github/workflows/onboarding_pr.yaml'
[Onboard APIs checks/build-matrix] 🚀 Start image=catthehacker/ubuntu:act-latest
[Onboard APIs checks/build-matrix] 🐳 docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[Onboard APIs checks/build-matrix] using DockerAuthConfig authentication for docker pull
[Onboard APIs checks/build-matrix] 🐳 docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[Onboard APIs checks/build-matrix] 🐳 docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[Onboard APIs checks/build-matrix] ⭐ Run Main Checkout branch
[Onboard APIs checks/build-matrix] 🐳 docker cp src=/home/fomm/Documents/dev/kong-devops/. dst=/home/fomm/Documents/dev/kong-devops
[Onboard APIs checks/build-matrix] ✅ Success - Main Checkout branch
[Onboard APIs checks/build-matrix] ⭐ Run Main echo "folder_matrix=$(find services/* -maxdepth 0 -type d | cut -d"/" -f2 | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT |
Beta Was this translation helpful? Give feedback.
-
This is a syntax violation per GitHub Actions a job matrix cannot make use of any sort of secrets, that this workflow worked in the past was a bug Why do you think this should run? Are you using act for a ci system and not for developing GitHub Actions? |
Beta Was this translation helpful? Give feedback.
This is a syntax violation per GitHub Actions a job matrix cannot make use of any sort of secrets, that this workflow worked in the past was a bug
See https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#context-availability
Why do you think this should run? Are you using act for a ci system and not for developing GitHub Actions?