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
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
Shelper
@shelper:matrix.org
[m]
Hi, there, i am trying to use act with my custom docker.sock path, how to config that in .actrc? i tried all the combination i can think of, but none worked. the documentation is not clear to me how to config it and googling does not give answer either
things i tried:
--container-daemon-socket /mnt/wsl/shared-docker/docker.sock
-b --container-daemon-socket /mnt/wsl/shared-docker/docker.sock
-b --container-daemon-socket=/mnt/wsl/shared-docker/docker.sock
-b socket=/mnt/wsl/shared-docker/docker.sock
socket=/mnt/wsl/shared-docker/docker.sock
1 reply
Koen Beckers
@koenbeckers-tmnl
Hi. My act -l isn't working.. Actually none of the commands are.
It finds the workflows (as per verbose debug info) But then just goes to 'planning event' and then does nothing.
❯ act -l -v
WARN  ⚠ You are using Apple M1 chip and you have not specified container architecture, you might encounter issues while running act. If so, try running it with '--container-architecture linux/amd64'. ⚠
DEBU[0000] Loading environment from /Users/koenbeckers/repositories/cognito-automation/.env
DEBU[0000] Loading secrets from /Users/koenbeckers/repositories/cognito-automation/.secrets
DEBU[0000] Loading workflows from '/Users/koenbeckers/repositories/cognito-automation/.github/workflows'
DEBU[0000] Loading workflows recursively
DEBU[0000] Found workflow 'create-user-test.yml' in '/Users/koenbeckers/repositories/cognito-automation/.github/workflows/create-user-test.yml'
DEBU[0000] Found workflow 'recreate-user-test.yml' in '/Users/koenbeckers/repositories/cognito-automation/.github/workflows/recreate-user-test.yml'
DEBU[0000] Reading workflow '/Users/koenbeckers/repositories/cognito-automation/.github/workflows/create-user-test.yml'
DEBU[0000] Reading workflow '/Users/koenbeckers/repositories/cognito-automation/.github/workflows/recreate-user-test.yml'
DEBU[0000] Planning event: push
Stage  Job ID  Job name  Workflow name  Workflow file  Events
4 replies
Ryan
@catthehacker
Now that Apple M2 have been announced, perhaps message needs to be changed 😅
Donato Barone
@donatobarone
Hi again :D Is it possible to create your own docker image starting from one of the supported ones and use that for the runner?
7 replies
Michele Peresano
@HealthyPear

Hello,

I have used act for the first time today, so I might have missed something...
Basically, I run my CI but the executables I need are taken from my macOS host and not the ubuntu-latest Docker container.

If you can help me I created this discussion, before joining Gitter,
https://github.com/nektos/act/discussions/1220

Marc Benslahdine
@barcus
This message was deleted
Manoj Reddy
@manojRY
Hello Team, How can I authenticate with private github enterprise as of now I am using the command as follows
act pull_request --workflows .github/workflows/deploy-ara.yml --container-architecture linux/amd64 --github-instance github.XX.XX.XX and this fails with authentication required. Thanks
4 replies
pjedlicka
@jedla01

Hello, any idea, why would act not evaluating env variables when used in checkout/with/path or name of the task simply? I am trying to build some Ansible collections and my example is like:
when I put env: collection_namespace: my_collection
then doing run: echo "${{ env.collection_namespace }}" works as expected
but:

    steps:
      - name: Check out - collection
        uses: actions/checkout@v2
        with:
          path: ansible_collections/${{ env.collection_namespace }}/${{ env.collection_name }}
          submodules: recursive

will not evaluate that variable and creates literal path with those $ and {{ }}

Marco Köpcke
@theCapypara
Hi, forgive me if I'm just being dumb, but is there any special trick required to get setup-python to work? I couldn't really find anything except for closed issues.
I'm getting ❗ ::error::Version 3.8 with arch x64 not found%0AAvailable versions:%0A%0A with the medium image
7 replies
tristan
@tristantreb
Hi, I am discovering act with enthousiasm! I am trying to run my first github action on act. On this line runs-on: ubuntu-latest , I get the error cannot unmarshal !!strubuntu-...into model.Job.
What can I do? I also have another unmarshal error. Many thanks!
1 reply
tristan
@tristantreb
image.png
2 replies
@catthehacker already running this does not work. Thanks
Clément VALENTIN
@cvalentin-dkt
Hello, I try to use SonarCloud with ACT but I have an error when ACT start sonarcloud image launch scan :
      - name: SonarCloud Scan
        uses: sonarsource/sonarcloud-github-action@master
        id: sonar
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
image.png
Have you idea why ?
Clément VALENTIN
@cvalentin-dkt
Umh I have found "solution" :
nektos/act#896
DeVon Jackson
@devo-wm
is there a way to temporarily ignore .secrets?
() ➜  project git:(develop) ✗ act pull_request -v
DEBU[0000] Loading environment from ~/Projects/trainingcamp-django/.env 
DEBU[0000] Loading secrets from ~/Projects/trainingcamp-django/.secrets 
FATA[0000] Error loading from ~/Projects/trainingcamp-django/.secrets: read ~/Projects/trainingcamp-django/.secrets: is a directory
i just passed an nonexistent file to --secrets-file to resolve
Diego de Pablos
@D-DePablos
Hi guys! I was wondering if you knew how to either:
  • Get the same image that GH uses in their server
  • Install clang when running ACT locally
2 replies
kevinminkolminganga
@kevinminkolminganga
Hello
When I run "Act" , I get this issue " docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1] user= workdir=symfony
| OCI runtime exec failed: exec failed: unable to start container process: chdir to cwd ("/go/act/symfony") set in config.json failed: no such file or directory: unknown
"
Can you help me to fix that ?
Capture d’écran 2022-07-25 à 18.47.26.png
kevinminkolminganga
@kevinminkolminganga
Anyone ?
Romain Primet
@rprimet
Hi all! I'm having trouble installing tools using github actions in act (e.g. after running provision-micromamba, the tool won't be found). Is there a way for act to drop me into a shell in the container on failure?
2 replies
Kevin Minkol
@Zicklr_twitter
hello
Veeti K
@veeti-k
Are reusable workflows supported?