{"id":18459034,"url":"https://github.com/liatrio/github-actions","last_synced_at":"2025-04-08T05:34:51.059Z","repository":{"id":38173348,"uuid":"246957983","full_name":"liatrio/github-actions","owner":"liatrio","description":"Collection of GitHub Actions","archived":false,"fork":false,"pushed_at":"2024-12-18T15:55:39.000Z","size":493,"stargazers_count":9,"open_issues_count":9,"forks_count":14,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-03-23T07:05:53.659Z","etag":null,"topics":["apprentice-program"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liatrio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-13T00:41:45.000Z","updated_at":"2024-09-16T17:46:56.000Z","dependencies_parsed_at":"2024-11-06T08:24:39.916Z","dependency_job_id":"eba5c1ef-cd7c-4261-a421-b7390e7589fb","html_url":"https://github.com/liatrio/github-actions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liatrio%2Fgithub-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liatrio%2Fgithub-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liatrio%2Fgithub-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liatrio%2Fgithub-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liatrio","download_url":"https://codeload.github.com/liatrio/github-actions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247785919,"owners_count":20995641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apprentice-program"],"created_at":"2024-11-06T08:21:29.270Z","updated_at":"2025-04-08T05:34:46.046Z","avatar_url":"https://github.com/liatrio.png","language":"Shell","readme":"This repo contains a collection of GitHub Actions:\n\n# ecr\nLogin and setup ECR.  Supports following inputs\n\n* **login** set to `true` if you'd like to login to ECR (Default: true)\n* **create_repos** set to `true` if you'd like to create ECR repositories from skaffold.yaml (Default: true)\n\nProvides following outputs:\n\n* **registry** the ECR registry\n\n```\n# Sample workflow\n\njobs:\n  build:\n    runs-on: ubuntu-18.04\n    steps:\n    - uses: actions/checkout@v2\n    - name: Configure AWS Credentials\n      uses: aws-actions/configure-aws-credentials@v1\n      with:\n        aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}\n        aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n        aws-region: ${{ secrets.AWS_REGION }}\n        role-duration-seconds: 1200\n    - uses: ./.github/actions/ecr\n```\n\n# skaffold-build\nRun `skaffold build` in your current repository.  Options:\n\n* **default_repo** Repo to push to.  Set to '' to skip pushing (Default: '')\n* **docker_username** Username to use when running `docker login`. Omit to skip `docker login`\n* **docker_password** Password to use when running `docker login`. Omit to skip `docker login`\n* **docker_registry** Registry to use when running `docker login`. Omit to skip `docker login`\n\n```\n    - name: Skaffold Build\n      uses: ./.github/actions/skaffold\n```\n\n# gitty-up\nRun `gitty-up` in your current repository.  Options:\n\n* **url** the Git URL to push to\n* **username** the Git Username to use \n* **password** the Git Password to use\n* **file** the file to update\n* **values** the values to set in `file`\n\n```\n# Sample workflow\n\njobs:\n  build:\n    runs-on: ubuntu-18.04\n    steps:\n    - uses: actions/checkout@v2\n    - name: GitOps\n      uses: liatrio/github-actions/gitops@master\n      with:\n        url: https://github.com/liatrio/lead-environments.git\n        username: ${{ github.actor }}\n        password: ${{ secrets.GITTY_UP_TOKEN }}\n        file: aws/liatrio-sandbox/terragrunt.hcl\n        values: inputs.sdm_version=1.3.16\n```\n\n# git-extra\nGet extra information about current git repo.  Creates following outputs:\n\n* **version** determined by `git describe`\n\n```\n# Sample workflow\n\njobs:\n  build:\n    runs-on: ubuntu-18.04\n    steps:\n    - uses: actions/checkout@v2\n    - id: git\n      uses: liatrio/github-actions/git-extra@master\n    - uses: liatrio/github-actions/gitops@master\n      with:\n        values: inputs.sdm_version=${{ steps.git.outputs.version}}\n```\n\n# helm-push\nPackage and push a helm chart.  Supports following inputs:\n\n* **bucket** Bucket to to push to\n* **chart** Path to helm chart\n* **version** Version to update\n* **appVersion** App version to update\n* **dependencies** App version to update\n\n```\n# Sample \n\njobs:\n  build:\n    runs-on: ubuntu-18.04\n    steps:\n    - name: Helm Chart\n      uses: liatrio/github-actions/helm-push@master\n      with:\n        chart: charts/operator-toolchain\n        bucket: liatrio-helm\n        version: v1.0.0\n        appVersion: v1.0.0\n        dependencies: '[{\"name\":\"elastic\",\"url\":\"https://helm.elastic.co\"}]'\n\n```\n\n# GitOps\n\nThese actions can be used together in a job to make changes to a source repo and create a pull request to trigger a update in a downstream dependency.\n\n - [gitops-gh-pr](./gitops-gh-pr/)\n - [gitops-update-yaml](./gitops-update-yaml/)\n - [gitops-semver-increment-yaml](./gitops-semver-increment-yaml/)\n\n# oauth2-token\n\nAn action for fetching an access token using the client credentials flow. \nThe `accessToken` output is [masked](https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#masking-a-value-in-log) from the build logs.\n\n```yaml\njobs:\n  demo:\n    steps:\n    - name: Fetch Token\n      uses: liatrio/github-actions/oauth2-token@master\n      id: token\n      with:\n        clientId: ${{ secrets.CLIENT_ID }}\n        clientSecret: ${{ secrets.CLIENT_SECRET }}\n        scopes: \"custom_scope\" # optional\n        tokenUrl: https://idp.example.com/oauth2/token\n    - name: API Request\n      run: |\n        curl -H \"Authorization: Bearer ${{ steps.token.outputs.accessToken }}\" https://api.example.com/protected\n```\n\n# conventional-release\n\nThe actions wraps [semantic-release](https://github.com/semantic-release/semantic-release), which can be used to automatically \nbump the version (based on [conventional commits](https://www.conventionalcommits.org/)), generate changelogs, and create GitHub releases.\n\nThe repository should include a `semantic-release` [config file](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration)\nas there's likely a need to change the defaults for non-JavaScript projects. \n\n```yaml\njobs:\n  release:\n    steps:\n      - name: Checkout Code\n        uses: actions/checkout@v2\n        with:\n          fetch-depth: 0\n      - name: Release\n        uses: liatrio/github-actions/conventional-release@master\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n# conventional-pr-title\n\nA GitHub Action for enforcing that pull request titles use [conventional commit prefixes](https://www.conventionalcommits.org/en/v1.0.0/).\nBy default, the action uses the conventional commit preset list (minus `chore:`), but that can be overwritten by passing the `prefixes` input.\n\nFor pull requests with a single commit, the action will check that the commit uses an allowed prefix. This is because GitHub\nuses the commit message instead of the pull request title as the default text in the squash merge dialog when the branch only has a single commit.\nNote that this action should be used with repositories that only permit squash merge; this will help enforce that only conventional commit prefixes land in the target branch. \n\n```yaml\njobs:\n  validate:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: liatrio/github-actions/conventional-pr-title@master\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n# apprentice-action \n\nThis [GitHub Action](https://github.com/features/actions) is used to verify the functionality of the application created as part of Liatrio's apprenticeship interview exercise and should be included as a step in the GitHub Workflow created for the exercise. It will execute some endpoint tests (HTTP calls) against your application and ensure that your application has the expected behavior.\n\nThis action defaults to testing port 80.\n\n### How to use\n1. Include the action in your GitHub Workflow\n2. Run the workflow and verify that the tests pass\n\n```yaml\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n    - name: run tests\n      uses: liatrio/github-actions/apprentice-action@master\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliatrio%2Fgithub-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliatrio%2Fgithub-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliatrio%2Fgithub-actions/lists"}