Skip to content

Latest commit

History

108 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

github-workflows

GitHub reusable workflows for public Shopify repositories. Not specific to any language or ecosystem.

Using a workflow

We suggest you reference workflows by their git commit. If you include a commit and tag on the same line, Dependabot will maintain both references. Example: uses: Shopify/github-workflows/.github/workflows/scorecard.yaml@0cd53e568340d24a2aefc65236f0973b47402c14 # v0.0.1

Dependabot Configuration

Create/modify the .github/dependabot.yaml file in your repository. Make sure the updates block contains a github-actions entry.

version: 2updates:
- package-ecosystem: github-actionsdirectory: /schedule:
interval: weekly

Available workflows

cla.yaml

Ensure any code contributors have signed the Shopify CLA.

Example Workflow
name: Contributor License Agreement (CLA)on:
pull_request_target:
types: [opened, synchronize]issue_comment:
types: [created]permissions: {}jobs:
cla:
uses: Shopify/github-workflows/.github/workflows/cla.yaml@c142f2dd84228c90bd716e4b5eafc68bd812f467 # v0.0.3permissions:
pull-requests: writesecrets:
token: ${{secrets.GITHUB_TOKEN}}cla-token: ${{secrets.CLA_TOKEN}}

scorecard.yaml

Publish an OpenSSF Scorecard for a project. Use this in public repositories, so that consumers can be assured of Shopify's security practices.

Consider adding a badge like https://api.securityscorecards.dev/projects/github.com/Shopify/github-workflows/badge.

Example Workflow
name: Scorecardon:
branch_protection_rule:
schedule:
- cron: "30 1 * * 6"permissions: {}jobs:
analysis:
permissions:
contents: readid-token: writeuses: Shopify/github-workflows/.github/workflows/scorecard.yaml@0cd53e568340d24a2aefc65236f0973b47402c14 # v0.0.1secrets:
token: ${{secrets.GITHUB_TOKEN}}

About

GitHub Actions reusable workflows

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors