on: workflow_call: secrets: access-token: description: 'A token passed from the caller workflow' required: false jobs: pass-secret-to-action: runs-on: ubuntu-latest steps: # passing the secret to an action - name: Pass the received secret to an action uses: ./.github/actions/my...
workflow_call is used to indicate that a workflow can be called by another workflow. When a workflow is triggered with the workflow_call event, the event payload in the called workflow is the same event payload from the calling workflow. For more information see, Reusing workflows....
最近在做Github Action相关的项目时候有个需求,有两个Github Repositories, 其中一个作为另外一个的submodule。 想要在submodule 有push 提交操作的时候,自动触发其workflow。 当然最后根据本文解决了之后发现,即便没有submodule的关系,两个仓库之间依然可以trigger 调用workflow。 但是这里还是把这两个仓库姑且叫做ChildRepo...
You can call one workflow from within another workflow. This allows you to reuse workflows, avoiding duplication and making your workflows easier to maintain. For more information, seeReusing workflows. Security hardening for workflows GitHub provides security features that you can use to increase the...
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. - Workflow runs · antlr/antlr4
If a caller workflow passes a secret that is not specified in the called workflow, this results in an error. Example of on.workflow_call.secrets on: workflow_call: secrets: access-token: description: 'A token passed from the caller workflow' required: false jobs: pass-secret-to-action: ru...
TruffleHog Github ActionGeneral Usageon: push: branches: - main pull_request: jobs: test: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 - name: Secret Scanning uses: trufflesecurity/trufflehog@main with: extra_args: --results=verified...
The important part to consider ishowit checks out your code. That line that starts with “uses” means that there’s some work going on behind the scenes to get the code from your GitHub repo to the server that is running your workflow. For the “actions/checkout” action, that behind...
the workflow inline script. GitHub Actions support their ownexpression syntaxthat allows access to the values of the workflow context. A workflow author often doesn’t even need to call any specific Action, as a lot can be accomplished using inline scripts with workflow expressions alone, e.g....
The value can be the Docker base image name, a local Dockerfile in your repository, or a public image in Docker Hub or another registry. To reference a Dockerfile local to your repository, the file must be named Dockerfile and you must use a path relative to your action metadata ...