Resource not found or you do not have access to this resource.
What would cause this type of error? I am authenticated using Owner token, but whenever I let Github Actions push template changes, it just throws this error.
Template:
Template:
name: Deploy Image to Docker Installation
on:
push:
branches:
- main
paths:
- "**"
pull_request:
paths:
- "**"
workflow_dispatch:
jobs:
deploy_template:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get short commit SHA
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: "Install latest Coder"
run: |
curl -L https://coder.com/install.sh | sh -s -- --version 0.X.0
# env:
# VERSION: 0.x
- name: "Login into Coder"
run: |
coder login https://coder.example.com --token ${{ secrets.CODER_SESSION_TOKEN }}
- name: "Push template"
run: |
coder templates push
${{ secrets.CODER_TEMPLATE_NAME }}
--yes
--name=${{ steps.vars.outputs.sha_short }}name: Deploy Image to Docker Installation
on:
push:
branches:
- main
paths:
- "**"
pull_request:
paths:
- "**"
workflow_dispatch:
jobs:
deploy_template:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get short commit SHA
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: "Install latest Coder"
run: |
curl -L https://coder.com/install.sh | sh -s -- --version 0.X.0
# env:
# VERSION: 0.x
- name: "Login into Coder"
run: |
coder login https://coder.example.com --token ${{ secrets.CODER_SESSION_TOKEN }}
- name: "Push template"
run: |
coder templates push
${{ secrets.CODER_TEMPLATE_NAME }}
--yes
--name=${{ steps.vars.outputs.sha_short }}