Skip to content

Commit

Permalink
chore(ci): build - cache & permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
heronimus committed Aug 16, 2023
1 parent 688c027 commit c42a6dc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/backend-mage-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Mage - check
uses: magefile/mage-action@v2
with:
Expand Down Expand Up @@ -63,6 +71,10 @@ jobs:
defaults:
run:
shell: bash
# Add "id-token" with the intended permissions.
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit c42a6dc

Please sign in to comment.