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
Merith
@Merith-TK
working on getting the gitpod environment for https://github.com/hugeblank/allium
to work
its have an issue with this part of the github workflow yml
      - name: capture build artifacts
        if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
        uses: actions/upload-artifact@v2
        with:
          name: Artifacts
          path: build/libs/
David Hoffman
@dhoffman-vertex

Trying to use event path, but does not seem to work, am I missing something?

I have

on:
  workflow_dispatch:
    inputs:
      environment:
        required: true
        type: choice
        description: Environment to deploy to
        options:
          - dev
          - qa
          - stage
          - prod

and

{
  "action": "workflow_dispatch",
  "inputs": {
    "environment": "dev"
  }
}
1 reply
Alex Harvey
@alexharv074
Hi all, I am using v0.2.24 to work around a bug on Mac OS X as suggested here. https://github.com/nektos/act/issues/935#issuecomment-999707633 When running act, I then get an error, Unexpected value 'uses' referring to a step. Is that because reusable workflows is not supported in 0.2.24?
9 replies
Tyler Thrailkill
@snowe2010
first time using act. it's only finding one of my 5 workflow files though. Unsure what is going wrong here.
❯ act -l
Stage  Job ID       Job name      Workflow name  Workflow file    Events
0      tag-release  Tag release?  Deploy         create-tags.yml  push
11 replies
❯ ls ./.github/workflows/
Permissions Size User  Date Modified Git Name
.rw-r--r--  1.4k tyler 15 Feb 10:15   -- create-tags.yml
.rw-r--r--   16k tyler 28 Feb 13:05   -- deploy.yml
.rw-r--r--   879 tyler 21 Mar 13:34   -- destroy-ephemeral-stack-on-close.yml
.rw-r--r--  4.2k tyler 27 Mar 13:30   -- main.yml
.rw-r--r--   524 tyler 21 Mar 13:34   -- remove-labels.yml
does act only support one workflow file?
oleks-popovych
@oleks-popovych
Hi guys!
I'm wondering is it possible to pass GPU into local runner? Ordinary docker supports this, but I do not managed to find any related options in act.
12 replies
David Cunliffe
@2Wdavidcunliffe
Hey all! Glad to see there is a good product and great community behind testing Github Actions Locally! I have an issue which I did attempt to search on but couldn't find anything useful. When I attempt to run my workflow I'm calling a GCP Service Auth in my step which requires a json file to be passed to the action so it can authenticate the environment for workloads in GCP. When I attempt to run the plan without this step it works fine but if I include the step and either attempt to pass a secret via a secret file in a json string format it still fails. Hoping someone has some documentation or could point me in the right direction?
5 replies
Seunghyun Hwang
@lesomnus
Hi, I would like to contribute to implementing a feature 'jobs.ID.container.volumes' to work. Where can I start? It would be appreciate if you could tell me where the code of reading the workflow yaml file and creating a container.
3 replies
Alex Harvey
@alexharv074
Hi all, does anyone know if there is a work around for this? https://github.com/jitterbit/get-changed-files/issues/9#issuecomment-739466748
6 replies
Allison
@allyycatx
Is it possible to use ssh key to checkout a repo using act? I tried passing ssh_key on checkoutv3 but act says "input required and not supplied: token"
1 reply
Alex Harvey
@alexharv074
Hi all, me again! I got past my last issue. Now I am finding that the files in the working directory are not available to nested composite actions, whereas they are when they run in GitHub Actions. I created a Gist to illustrate https://gist.github.com/alexharv074/86a24dcf622c23edd45904849ae37ad8 Any idea what could cause the working directory files to not be available?
5 replies
Maurizio Turatti
@mkjsix
Hi all, I've just installed act on my Mac but nothing happens when I run the command, it just exits immediately without any error or message. Nothing at all.
act -n -v -W .github/workflows/tags.yml
DEBU[0000] Loading environment from /Users/mturatti/src/softinstigate/restheart/.env
DEBU[0000] Loading secrets from /Users/mturatti/src/softinstigate/restheart/.secrets
DEBU[0000] Loading workflow '/Users/mturatti/src/softinstigate/restheart/.github/workflows/tags.yml'
DEBU[0000] Reading workflow '/Users/mturatti/src/softinstigate/restheart/.github/workflows/tags.yml'
DEBU[0000] Planning event: push
DEBU[0000] Loading slug from git directory '/Users/mturatti/src/softinstigate/restheart/.git'
DEBU[0000] Loading revision from git directory '/Users/mturatti/src/softinstigate/restheart/.git'
DEBU[0000] Found revision: 2d3987bcb1fb3a6f2434f500b693f67114ed8602
DEBU[0000] HEAD points to '2d3987bcb1fb3a6f2434f500b693f67114ed8602'
DEBU[0000] using github ref: refs/heads/6.2.x
DEBU[0000] Found revision: 2d3987bcb1fb3a6f2434f500b693f67114ed8602
DEBU[0000] Loading slug from git directory '/Users/mturatti/src/softinstigate/restheart/.git'
DEBU[0000] Loading revision from git directory '/Users/mturatti/src/softinstigate/restheart/.git'
DEBU[0000] Found revision: 2d3987bcb1fb3a6f2434f500b693f67114ed8602
DEBU[0000] HEAD points to '2d3987bcb1fb3a6f2434f500b693f67114ed8602'
DEBU[0000] using github ref: refs/heads/6.2.x
DEBU[0000] Found revision: 2d3987bcb1fb3a6f2434f500b693f67114ed8602
DEBU[0000]
5 replies
Elias Hogstvedt
@CapsAdmin

hello, I'm a bit new to actions and act in general, I'm trying to checkout my own repository using

name: test
on: [push]

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
      - name: checkout the project
        uses: actions/checkout@v2

      - name: test
        run: find .

but in the test step, there are no files

11 replies
DL
@dl8:matrix.org
[m]
Hi, I've been having a bit of trouble with binding a path from a GHA when calling into a docker container, It seems like the bind is executed against the original machine's filesystem rather than the state inside the docker container
Is there any way to bind a path from the GHA rather than the host machine?
2 replies
I'm trying to run a pipeline that builds an application and then uploads it into s3, and to perform the s3 upload im using the docker image amazon/aws-cli
act exectues within a docker container right?
1 reply
James Mortensen
@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