---
title: "Accessing files from the action repository in a GitHub Composite Action"
url: https://daily.dev/posts/accessing-files-from-the-action-repository-in-a-github-composite-action-vxhyxbxzg
source_url: https://www.meziantou.net/accessing-files-from-the-action-repository-in-a-github-composite-action.htm
type: article
source: "Meziantou"
published: 2026-04-20T13:19:04.611Z
updated: 2026-04-20T13:21:21.219Z
tags: ["cicd", "github-actions"]
reading_time: 2
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Accessing files from the action repository in a GitHub Composite Action

**[Meziantou](https://daily.dev/sources/meziantou)** · 2 min read · 0 upvotes · 0 comments

## Summary

When building GitHub Composite Actions, the working directory defaults to the caller's repository, not the action's own repository. To reference files bundled with the action (like shell scripts), use the `github.action_path` context variable, which resolves to the directory where the action itself is located. A short `action.yml` example demonstrates running a script using `${{ github.action_path }}/script.sh`.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.meziantou.net/accessing-files-from-the-action-repository-in-a-github-composite-action.htm>

## Similar posts on daily.dev

- [Reference same-repository actions with self-repository syntax](https://daily.dev/posts/reference-same-repository-actions-with-self-repository-syntax-ncw4co1pe) · GitHub Changelog · 0 upvotes · 0 comments

---

Tags: [#cicd](https://daily.dev/tags/cicd), [#github-actions](https://daily.dev/tags/github-actions)

[View this post on daily.dev](https://daily.dev/posts/accessing-files-from-the-action-repository-in-a-github-composite-action-vxhyxbxzg)
