<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/accessing-files-from-the-action-repository-in-a-github-composite-action-vxhyxbxzg" -->

---
title: Accessing files from the action repository in a GitHub...
description: When building GitHub Composite Actions, the working directory defaults to the caller's repository, not the action's own repository. To reference files bundled...
canonical: https://daily.dev/posts/accessing-files-from-the-action-repository-in-a-github-composite-action-vxhyxbxzg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Accessing files from the action repository in a GitHub Composite Action | daily.dev
og:description: When building GitHub Composite Actions, the working directory defaults to the caller's repository, not the action's own repository. To reference files bundled...
og:url: https://daily.dev/posts/accessing-files-from-the-action-repository-in-a-github-composite-action-vxhyxbxzg
og:image: https://api.daily.dev/og/posts/vXHYxBXzg.png
og:image:alt: Accessing files from the action repository in a GitHub Composite Action
og:image:width: 1200
og:image:height: 630
og:locale: 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
- [Configure your repositories with .github](https://daily.dev/posts/configure-your-repositories-with-github-adcvteuoe) · Cassidy's blog · 8 upvotes · 1 comments
- [Is GitHub Actions Putting Your Software at Risk?](https://daily.dev/posts/is-github-actions-putting-your-software-at-risk--a2b2a1jji) · Atomic Spin · 0 upvotes · 0 comments
- [A deep dive into GitHub Actions](https://daily.dev/posts/a-deep-dive-into-github-actions-az4oxlp76) · Flavio Copes · 2 upvotes · 0 comments
- [Are You Linting Your GitHub Actions?](https://daily.dev/posts/are-you-linting-your-github-actions--mtf0hfg29) · TypeScript.TV · 1 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)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"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","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/accessing-files-from-the-action-repository-in-a-github-composite-action-vxhyxbxzg"},"datePublished":"2026-04-20T13:19:04.611Z","dateModified":"2026-04-20T13:21:21.219Z","description":"When building GitHub Composite Actions, the working directory defaults to the caller's repository, not the action's own repository. To reference files bundled...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8240e2a9e32d10ddff9e87e12edd1961?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8240e2a9e32d10ddff9e87e12edd1961?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Meziantou","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Meziantou","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1bdfdd5349654b08ab6fa3f1ac38192c","url":"https://daily.dev/sources/meziantou"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/accessing-files-from-the-action-repository-in-a-github-composite-action-vxhyxbxzg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cicd,github-actions","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Meziantou","item":"https://daily.dev/sources/meziantou"},{"@type":"ListItem","position":3,"name":"Accessing files from the action repository in a GitHub Composite Action"}]}
```

