Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 05 09:10
    @catthehacker banned @1948_your_tlv_homo_1488:swirl.funny.cl
James
@jamesmortensen
To the best of my knowledge, act runs inside docker containers, so if you're trying to use docker inside a container, you're more than likely connecting through the docker socket to the host.
DL
@dl8:matrix.org
[m]
basically suppose i have a repository with the file a.java, and the workflow creates bin/a.jar, the bin folder doesnt actually exist on the host, it exists only within the docker container running the workflow
18 replies
however if the workflow includes a command along the lines of docker -v $pwd/bin:/aws amazon/aws-cli s3 cp a.jar s3://somebucket that doesnt work
DL
@dl8:matrix.org
[m]
it somehow messes a bit with the entrypoint, but i think its fine
5 replies
Stephane Moser
@Moser-ss
Hey hey,
I have a situation where I have several workflows in my repository using the same event workflow_call: and I would like to have the capability to select the workflow I want to execute. Is ACT capable of that? from what I saw of the help menu it is only possible to select he job
2 replies
Gabriel Fernandes
@Nosferatu31

Hello,

How can I pass a ECDSA key to act so that I can use it?
It keeps returning invalid format even if I put a ECDSA in my secrets file in a single line

2 replies
Alex Harvey
@alexharv074
@ChristopherHX I wonder if this is another bug, related to passing secrets down multiple nested levels somehow? https://gist.github.com/alexharv074/72f0b9ceb657430cfd3cd95fd63aa350
1 reply
jorgepiloto
@jorgepiloto:matrix.org
[m]

Hi all πŸ‘‹

My name is Jorge MartΓ­nez. I'm an Ansys employee working on a Python library generator named ansys-templates.

This tool generates Python projects which include a Python library, configuration for code style tools and a GitHub Actions YML file. For testing this last file, we are using act. This means, we are executing act in our main CI tomake sure that baked actions file works properly.

However, I see the following output from GH logs:

Error: Unable to process command '[GitHub CI/Code style          ]   ❓  ##[add-matcher]/run/act/actions/actions-setup-python@v2/.github/python.json' successfully.
Error: Could not find a part of the path '/run/act/actions/actions-setup-python@v2/.github/python.json'.
time="2022-04-11T09:29:14Z" level=warning msg="unable to get git repo: section \"remote \\\"origin\\\"\" does not exist"
[GitHub CI/Code style          ]   ✅  Success - Set up Python

Even though those errors are being raise, the "Success - Set up Pyhton" is shown and act works as expected. However, the errors are captured by GitHub which labels the job as failed one.

More information from the logs: https://github.com/pyansys/ansys-templates/actions/runs/2147571852

I am installing act using brew and imposing the following config:

echo "-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest" >> ~/.actrc

I've tried with other images but the same error appears on the logs. May you please provide me with some insight about this error?

Thanks for developing and maintaining act! It is really useful and simple to use πŸš€

1 reply
jorgepiloto
@jorgepiloto:matrix.org
[m]
Thanks for your time replying to my question, @ChristopherHX This solved the problem! πŸš€
Burak Can Kahraman
@burakcank
Hi there ! I was trying to make a job "not execute on my local" but also "execute always on github". I tried ${{ !env.ACT }} && always() however it seems to be not working. I guess it has something to do with how always() works.
1 reply
Let me know if anyone has come across with a similar situation.
Casey Lee
@cplee
A good friend of mine leads a DevOps consulting company that is partnering with GitHub in building solutions for companies. Do you love working with GitHub Actions and would be interested in doing it full time? Check out this position: https://jobs.lever.co/liatrio/3ba9e8d4-28a3-430e-bda1-f1dd43dffe71
ankur-repo
@ankur-repo

Hello,
I am new to act, while running my workflow in local system at upload artifact step it is failing with below error.

Run Upload Artifact
git clone 'https://github.softwareag.com/actions/upload-artifact' # ref=v2
docker cp src=C:\Users***.cache\act/actions-upload-artifact@v2/ dst=/var/run/act/actions/actions-upload-artifact@v2/
docker exec cmd=[mkdir -p /var/run/act/actions/actions-upload-artifact@v2/] user= workdir=
docker exec cmd=[node /var/run/act/actions/actions-upload-artifact@v2/dist/index.js] user= workdir=
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "node": executable file not found in $PATH: unknown
[0m ❌ Failure - Upload Artifact
[0mexit with FAILURE: 126

Mohammad Farooqi
@mohammadfarooqi
Hi All, I am trying to use actions/cache@v2 and i keep getting this error:
Error: The runs.using key in action.yml must be one of: [composite docker node12], got node16
1 reply
Vitor Mori
@vsmori
How do i remove debug messages ?
[Deploy Functions/Deploy] πŸ’¬ ::debug..
masterneko
@masterneko
hi
I am trying to test my workflow but the action i am using has the workspace path hard coded. What can I do?
1 reply
Error: ENOENT: no such file or directory, open '/github/workspace/style.css'
syscall: 'open',
code: 'ENOENT',
path: '/github/workspace/style.css'
}
Jonah Werre
@jwerre
How would I simulate: on.push.tags: - v*.*.*??
Roman Yavnikov
@Romazes
This message was deleted
3 replies
Roman Yavnikov
@Romazes
This message was deleted
1 reply
Roman Yavnikov
@Romazes
This message was deleted
1 reply
Roman Yavnikov
@Romazes

Hello, Could somebody help with my problem ?
I have problem with azure-credential json file Set secret with Azure Credentials
When I tried paste secret variable before script have started


workflow.yaml

jobs:
  build-and-publish:
    runs-on: ubuntu-latest
    steps:
    - name: 'Dump Environment Variables'
      if:  github.actor == 'nektos/act'
      shell: bash
      run: |
        echo 'env.DOTNET_CORE_VERSION: '${{ env.DOTNET_CORE_VERSION }}
        echo 'secrets.AUTO_DEPLOYMENT_SLOT_CREATION: '${{ secrets.AUTO_DEPLOYMENT_SLOT_CREATION }}
  - name: 'install az cli'
      if: github.actor == 'nektos/act'
      shell: bash
      run: |
        curl -sL https://aka.ms/InstallAzureCLIDeb | bash
    - name: Login via Az module
      uses: azure/login@v1
      with:
        creds: ${{secrets.AUTO_DEPLOYMENT_SLOT_CREATION}}
        enable-AzPSSession: false ## PowerShell module - off

My file: .actrc

-s AUTO_DEPLOYMENT_SLOT_CREATION


Run script

act -v
Then ask AUTO_DEPLOYMENT_SLOT_CREATION:

{'clientId':'value','subscriptionId':'value','tenantId':'value','activeDirectoryEndpointUrl':'https://login.microsoftonline.com','resourceManagerEndpointUrl':'https://management.azure.com/','activeDirectoryGraphResourceId':'https://graph.windows.net/','sqlManagementEndpointUrl':'https://management.core.windows.net:8443/','galleryEndpointUrl':'https://gallery.azure.com/','managementEndpointUrl':'https://management.core.windows.net/'}

Result

1

2

1 reply
Roman Yavnikov
@Romazes
Somebody knows a solution? πŸ‘¨β€πŸ’»
Roman Yavnikov
@Romazes
Somebody knows a solution 100% but I can't see your answer 😁
Roman Yavnikov
@Romazes
Who can help for cup of coffee/tea ? β˜•/🍡
Roman Yavnikov
@Romazes
πŸ™
Aman kumar chagti
@amankumarchagti

Hi, I've been trying to use secrets from my.secrets file but it is giving me the following issue:
here is a GitHub actions snippet:

  - name: deploy
        uses: appleboy/scp-action@master
        with:
          host: ${{ secrets.HOST }}
          username: ${{ secrets.USERNAME }}
          password: ${{ secrets.PASSWORD }}
          port: ${{ secrets.PORT }}

my.secret file format:

secrets.HOST=test@test.com
secrets.USERNAME=test
secrets.PASSWORD=test@test
secrets.PORT=111

Error i am getting:

docker run image=act-appleboy-scp-action-master-dockeraction:latest platform= entrypoint=[] cmd=[]                                          
| 20***/05/11 06:16:04 Error: can't connect without a private SSH key or password

when my.secrets file has following content:

HOST=test@test.com
USERNAME=test
PASSWORD=test@test
PORT=111

error is get:

| 20***/05/11 06:23:14 error copy file to dest: ***, error message: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain

but when i directly write value in github actions, i works fine

9 replies
Carlos De Jesus
@carlos.dashclicks_gitlab
Hey all, new to the channel. Im sure it's been asked before so if you have resources to direct me to I would appreciate it. Any idea if reusable workloads is a thing in ACT. If it's not is anyone familiar on some workarounds to be able to test reusable workloads locally? Thanks.
4 replies
Aman kumar chagti
@amankumarchagti

Hey all, I installed act in my ubuntu 18.04 using following command:

curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash

and then stored it in /usr/bin/act file by following command

sudo ln -sfv ./bin/act /usr/bin/act

and then i run following command:

act -C drc-setup/ --secret-file drc-setup/my.secrets

but it gives me following error:

ERRO[0000] failed to obtain container engine info: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": dial unix /var/run/docker.sock: connect: permission denied                                                                     [drc-setup-dev/build] πŸš€  Start image=ghcr.io/catthehacker/ubuntu:act-18.04                                                                                             [drc-setup-dev/build]   🐳  docker pull image=ghcr.io/catthehacker/ubuntu:act-18.04 platform= username= forcePull=false                                                 Error: unable to determine if image already exists for image "ghcr.io/catthehacker/ubuntu:act-18.04" (): Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/json?filter=ghcr.io%2Fcatthehacker%2Fubuntu%3Aact-18.04": dial unix /var/run/docker.sock: connect: permission denied

and when i try to use sudo with command, it shows:

sudo: act: command not found

what to do?

5 replies
Aman kumar chagti
@amankumarchagti
Hi, there. I am getting one error for my following github actions:
error is:
[drc-server-dev/build]   ☁  git clone 'https://github.com/actions/checkout' # ref=v2                                                                                    [drc-server-dev/build]   🐳  docker cp src=/home/***/.cache/act/actions-checkout@v2/ dst=/var/run/act/actions/actions-checkout@v2/                                      [drc-server-dev/build]   🐳  docker exec cmd=[mkdir -p /var/run/act/actions/actions-checkout@v2/] user= workdir=                                                        [drc-server-dev/build]   🐳  docker exec cmd=[node /var/run/act/actions/actions-checkout@v2/dist/index.js] user= workdir=                                               [drc-server-dev/build]   ❓  ::save-state name=isPost::true                                                                                                              [drc-server-dev/build]   πŸ’¬  ::debug::GITHUB_WORKSPACE = '/home/***/source-code/drc-server'                                                                             [drc-server-dev/build]   πŸ’¬  ::debug::qualified repository = '***-co/drc-server'                                                                                        [drc-server-dev/build]   πŸ’¬  ::debug::ref = 'dev'                                                                                                                       [drc-server-dev/build]   πŸ’¬  ::debug::commit = 'undefined'                                                                                                              [drc-server-dev/build]   πŸ’¬  ::debug::clean = true                                                                                                                      [drc-server-dev/build]   πŸ’¬  ::debug::fetch depth = 1                                                                                                                   [drc-server-dev/build]   πŸ’¬  ::debug::lfs = false                                                                                                                       [drc-server-dev/build]   πŸ’¬  ::debug::submodules = false                                                                                                                [drc-server-dev/build]   πŸ’¬  ::debug::recursive submodules = false                                                                                                      [drc-server-dev/build]   ❗  ::error::Input required and not supplied: token                                                                                             [drc-server-dev/build]   ❌  Failure - actions/checkout@v2                                                                                                               [drc-server-dev/build] exit with `FAILURE`: 1                                                                                                                           Error: Job 'build' failed
Aman kumar chagti
@amankumarchagti
this is Github actions code
jobs: build: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 with: ref: dev - name: Set up JDK 1.11 uses: actions/setup-java@v1 with: java-version: 1.11 - uses: actions/cache@v1 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: |
${{ runner.os }}-maven-
9 replies
apologies for the bad representation.
Aman kumar chagti
@amankumarchagti

hey, one more issue came up:
github actions is :

  - name: Build with Maven                                                                                                                                                  run: mvn clean package -Dmaven.test.skip=true
[drc-server-dev/build]   βš™  ::set-output:: cache-hit=false                                                                                                              [drc-server-dev/build]   βœ…  Success - actions/cache@v1                                                                                                                  [drc-server-dev/build] ⭐  Run Build with Maven                                                                                                                          [drc-server-dev/build]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3] user= workdir=                                            | /var/run/act/workflow/3: line 2: mvn: command not found                                                                                                               [drc-server-dev/build]   ❌  Failure - Build with Maven                                                                                                                  [drc-server-dev/build] exit with `FAILURE`: 127                                                                                                                         Error: Job 'build' failed

but maven is installed on both local machine and target machine for which I'm running GitHub actions

5 replies
Aman kumar chagti
@amankumarchagti
How can i checkout code from other repo of mine in same account using act
- name: Checkout  Code                                                                                                                                              
  uses: actions/checkout@v2                                                                                                                                               
   with:                                                                                                                                                                     
          repository: myaccountname/test-code
          ref: dev                                                                                                                                                                
          token: ${{ secrets.TOKEN }}                                                                                                                                             
          path: test-code
1 reply
Koen Beckers
@koenbeckers-tmnl
Hi there. Setting up this repos today, but unfortunately i get the following error:
::error::Client network socket disconnected before secure TLS connection was established
9 replies
This happens when it is validating the gradle wrapper
I'm not entirely sure where the error exactly is coming from though ;(
Frederico Liporace
@fredliporace
Hello! I'm using DockerInDocker and facing the same issue described nektos/act#410. In my case it would suffice to mount the host's /tmp into act's container /tmp and then use this directory to exchange files between containers. The issue above suggests using --bind and then the workspace dir to exchange files, but I wonder if there is a way to pass an "extra" mount binding list to act's container.
Bryan K Reed
@bkreed

I'm using Github Enterprise and it's having issues downloading actions.

act   push --github-instance github.threatfoo.com --actor sandcastle-build --secret-file ~/.actions-secrets -W .github/workflows/sandcastle-go-focal.yml

I have a PAT in the secrets file for the sandcastle-build account.

jobs:
  prep:
    runs-on: [ubuntu-20.04]
    env:
      GITHUB_TOKEN: ${{ secrets.SANDCASTLE_TOKEN }}

That sets the PAT to be the token. (Also tried GT defined as the PAT in the secrets file as well, same behavior).

Access to our repo, installing Go modules all work. But downloading actions from our GHE server fails auth.

      - name: Install go
        uses: actions/setup-go@v2
        with:
          go-version: 1.12.8

Results in

[Sandcastle Go Focal/prep] ⭐  Run Install go
[Sandcastle Go Focal/prep]   ☁  git clone 'https://github.threatbuild.com/actions/setup-go' # ref=v2
[Sandcastle Go Focal/prep]   cloning https://github.threatbuild.com/actions/setup-go to /home/bkreed/.cache/act/actions-setup-go@v2
[Sandcastle Go Focal/prep] Unable to clone https://github.threatbuild.com/actions/setup-go refs/heads/v2: authentication required
[Sandcastle Go Focal/prep]   ❌  Failure - Install go
[Sandcastle Go Focal/prep] authentication required

Running with debugging turned own didn't present any more info.

Using the PAT, I'm able to check out all the Actions from the GHE repo on the command line (even tried it inside the docker container and it worked).

9 replies
Jaime Negrete
@jrnp97
image.png
hi Everyone :)
I'm using act to execute a GHA job locally, everything goes well the first time, I detected a syntax error, but when I try to change the .yml file and execute the job again, my changes aren't reflected
anyone knows if act has cache or something similar?
3 replies
NOTE: act sees the changes after I reboot the machine :/
Jaime Negrete
@jrnp97
:)
Josh Soref
@jsoref
So, https://github.com/nektos/act/issues/1112#issuecomment-1090399267 works as a workaround, does someone offhand understand why the workaround is needed?
Is it specifically limited to actions/checkout because of special handling act has for it?
hiroaki kajiyama
@kaji-hiro
act -l command is not working
it's FATA[0000] Unable to build dependency graph!
what can I do to solve ?
1 reply
Christopher
@choffa

Hi. Is there a known issue with testcontainers-java running in act?
I keep getting

| 2022-06-07 08:50:21.553 [testcontainers-ryuk] WARN  o.t.utility.RyukResourceReaper - Can not connect to Ryuk at 172.17.0.1:55311
| java.net.ConnectException: Connection refused
|         at java.base/sun.nio.ch.Net.pollConnect(Native Method)
|         at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
|         at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542)
|         at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
|         at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
|         at java.base/java.net.Socket.connect(Socket.java:633)
|         at org.testcontainers.utility.RyukResourceReaper.lambda$null$2(RyukResourceReaper.java:176)
|         at org.rnorth.ducttape.ratelimits.RateLimiter.doWhenReady(RateLimiter.java:27)
|         at org.testcontainers.utility.RyukResourceReaper.lambda$maybeStart$3(RyukResourceReaper.java:172)
|         at java.base/java.lang.Thread.run(Thread.java:833)

The project is a Kotlin-Ktor application using Gradle. It works fine on github proper...

2 replies
Donato Barone
@donatobarone
Hi everybody, pretty new in using act, and most likely what I am experiencing is a docker/macos issue more than act itself, but asking here in case anybody has experienced the same. In a github action running locally I have a go install ./... command and when downloading the various golang modules it throws an error about missing certificates, here is an example, but a lot more modules throw the same: cmd/validator/main.go:16:2: github.com/xeipuuv/gojsonschema@v1.2.0: Get "https://proxy.golang.org/github.com/xeipuuv/gojsonschema/@v/v1.2.0.zip": x509: certificate signed by unknown authority
3 replies