| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -609,7 +609,7 @@ jobs: | |||
| 609 | 609 | fetch-depth: 0 | |
| 610 | 610 | ||
| 611 | 611 | - name: Run Trivy vulnerability scanner in repo mode | |
| 612 | - uses: aquasecurity/trivy-action@1db49f532692e649dc5dc43c7c0444dac4790137 | ||
| 612 | + uses: aquasecurity/trivy-action@d63413b0a4a4482237085319f7f4a1ce99a8f2ac | ||
| 613 | 613 | with: | |
| 614 | 614 | scan-type: "fs" | |
| 615 | 615 | scan-ref: "." | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -67,3 +67,52 @@ jobs: | |||
| 67 | 67 | env: | |
| 68 | 68 | HOMEBREW_GITHUB_API_TOKEN: ${{secrets.HOMEBREW_GITHUB_API_TOKEN}} | |
| 69 | 69 | run: ./ci/steps/brew-bump.sh | |
| 70 | + | ||
| 71 | + aur: | ||
| 72 | + needs: npm | ||
| 73 | + runs-on: ubuntu-latest | ||
| 74 | + timeout-minutes: 10 | ||
| 75 | + env: | ||
| 76 | + GH_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} | ||
| 77 | + steps: | ||
| 78 | + # We need to checkout code-server so we can get the version | ||
| 79 | + - name: Checkout code-server | ||
| 80 | + uses: actions/checkout@v3 | ||
| 81 | + with: | ||
| 82 | + fetch-depth: 0 | ||
| 83 | + path: "./code-server" | ||
| 84 | + | ||
| 85 | + - name: Get code-server version | ||
| 86 | + id: version | ||
| 87 | + run: | | ||
| 88 | + pushd code-server | ||
| 89 | + echo "::set-output name=version::$(jq -r .version package.json)" | ||
| 90 | + popd | ||
| 91 | + | ||
| 92 | + - name: Checkout code-server-aur repo | ||
| 93 | + uses: actions/checkout@v3 | ||
| 94 | + with: | ||
| 95 | + repository: "cdrci/code-server-aur" | ||
| 96 | + token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} | ||
| 97 | + | ||
| 98 | + - name: Configure git | ||
| 99 | + run: | | ||
| 100 | + git config --global user.name cdrci | ||
| 101 | + git config --global user.email opensource@coder.com | ||
| 102 | + | ||
| 103 | + - name: Validate package | ||
| 104 | + uses: hapakaien/archlinux-package-action@v2 | ||
| 105 | + with: | ||
| 106 | + pkgver: ${{ steps.version.outputs.version }} | ||
| 107 | + updpkgsums: true | ||
| 108 | + srcinfo: true | ||
| 109 | + | ||
| 110 | + - name: Open PR | ||
| 111 | + # We need to git push -u otherwise gh will prompt | ||
| 112 | + # asking where to push the branch. | ||
| 113 | + run: | | ||
| 114 | + git checkout -b update-version-${{ steps.version.outputs.version }} | ||
| 115 | + git add . | ||
| 116 | + git commit -m "chore: updating version to ${{ steps.version.outputs.version }}" | ||
| 117 | + git push -u origin $(git branch --show) | ||
| 118 | + gh pr create --repo coder/code-server-aur --title "chore: bump version to ${{ steps.version.outputs.version }}" --body "PR opened by @$GITHUB_ACTOR" --assignee $GITHUB_ACTOR | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,7 +51,7 @@ jobs: | |||
| 51 | 51 | uses: actions/checkout@v3 | |
| 52 | 52 | ||
| 53 | 53 | - name: Run Trivy vulnerability scanner in image mode | |
| 54 | - uses: aquasecurity/trivy-action@1db49f532692e649dc5dc43c7c0444dac4790137 | ||
| 54 | + uses: aquasecurity/trivy-action@d63413b0a4a4482237085319f7f4a1ce99a8f2ac | ||
| 55 | 55 | with: | |
| 56 | 56 | image-ref: "docker.io/codercom/code-server:latest" | |
| 57 | 57 | ignore-unfixed: true | |
| Back | FazBrowse Home | New Git URL |
0 commit comments