narrow settings permissions to 0o600 and settings dir to 0o700 (#1046) #218
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: goreleaser | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| goreleaser: | |
| permissions: | |
| id-token: write | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.21" | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v4 | |
| with: | |
| distribution: goreleaser | |
| version: latest | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_TO_TAP }} | |
| - name: Run GoReleaser to turso-cli repo | |
| uses: goreleaser/goreleaser-action@v4 | |
| with: | |
| distribution: goreleaser | |
| version: latest | |
| args: release --clean --config .goreleaser-self.yaml | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_TO_SELF }} | |
| - name: Get version | |
| id: get_version | |
| run: echo "VERSION={ \"Version\":\"$GITHUB_REF_NAME\"}" >> $GITHUB_OUTPUT | |
| shell: bash | |
| - name: Echo | |
| run: echo ${{ steps.get_version.outputs.VERSION }} | |
| - name: Update Turso backoffice | |
| uses: fjogeleit/http-request-action@v1 | |
| with: | |
| url: 'https://api.turso.tech/releases' | |
| method: 'POST' | |
| data: ${{ steps.get_version.outputs.VERSION }} | |
| bearerToken: ${{ secrets.TURSOSTAFF_TOKEN }} |