Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-go@v5
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: true
Expand All @@ -27,7 +27,7 @@ jobs:
run: go test -race -coverprofile=coverage.out ./...

- name: Upload coverage
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: coverage
path: coverage.out
Expand All @@ -38,9 +38,9 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-go@v5
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: true
Expand All @@ -53,9 +53,9 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-go@v5
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: true
Expand All @@ -70,9 +70,9 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-go@v5
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: true
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
# persist-credentials: false keeps checkout from leaving a GITHUB_TOKEN
# Authorization header in the git config. The formula push below
# authenticates as the GitHub App via the remote URL, and a persisted
# header would take precedence over it.
- uses: actions/checkout@v7
with:
persist-credentials: false

- uses: actions/setup-go@v5
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: true
Expand Down Expand Up @@ -79,6 +85,7 @@ jobs:
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: |
sudo apt-get update
sudo apt-get install -y dpkg-dev apt-utils rclone

DESCRIPTION="Developer environment orchestration tool"
Expand Down Expand Up @@ -126,7 +133,7 @@ jobs:
- name: Generate app token for formula push
if: github.ref_type == 'tag'
id: app-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
Expand All @@ -145,7 +152,6 @@ jobs:

git config user.email "noc+gitte@cego.dk"
git config user.name "CI"
git config --unset-all http.https://github.com/.extraheader || true
git remote set-url origin "https://x-access-token:${APP_TOKEN}@github.com/cego/gitte"
git fetch origin main
git checkout main
Expand Down