Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable #37

Closed
AceKiron opened this issue Jun 5, 2022 · 2 comments
Closed

Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable #37

AceKiron opened this issue Jun 5, 2022 · 2 comments

Comments

@AceKiron
Copy link

AceKiron commented Jun 5, 2022

Run actions/deploy-pages@main
  with:
    token: ***
    emit_telemetry: false
    timeout: 600000
    error_count: 10
    reporting_interval: [5](https://github.com/AceKiron/portfolio/runs/6745490016?check_suite_focus=true#step:7:5)000
Error: Error: Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable

That's all it says, running this action using

- name: Deploy artifact
  uses: actions/deploy-pages@main
  with:
    token: ${{ github.token }}

Repository for example: https://github.com/AceKiron/portfolio

@AceKiron
Copy link
Author

AceKiron commented Jun 5, 2022

Got that variable after setting permissions correctly (see glassechidna/ghaoidc#1), but now I get 403 twice.

Run actions/deploy-pages@main
  with:
    token: ***
    emit_telemetry: false
    timeout: 600000
    error_count: 10
    reporting_interval: 5000
Actor: AceKiron
Action ID: [2](https://github.com/AceKiron/portfolio/runs/6745517291?check_suite_focus=true#step:7:2)44[3](https://github.com/AceKiron/portfolio/runs/6745517291?check_suite_focus=true#step:7:3)[4](https://github.com/AceKiron/portfolio/runs/6745517291?check_suite_focus=true#step:7:4)29149
Artifact URL: https://pipelines.actions.githubusercontent.com/jOLGc9JPBcAvEMZE0pB81t9ChTRNtIF3ANoYkTNjqEC[5](https://github.com/AceKiron/portfolio/runs/6745517291?check_suite_focus=true#step:7:5)z5XRzc/_apis/pipelines/workflows/2443429149/artifacts?api-version=[6](https://github.com/AceKiron/portfolio/runs/6745517291?check_suite_focus=true#step:7:6).0-preview
{"count":1,"value":[{"containerId":1[7](https://github.com/AceKiron/portfolio/runs/6745517291?check_suite_focus=true#step:7:7)755[8](https://github.com/AceKiron/portfolio/runs/6745517291?check_suite_focus=true#step:7:9),"size":20480,"signedContent":null,"fileContainerResourceUrl":"https://pipelines.actions.githubusercontent.com/jOLGc[9](https://github.com/AceKiron/portfolio/runs/6745517291?check_suite_focus=true#step:7:10)JPBcAvEMZE0pB81t9ChTRNtIF3ANoYkTNjqEC5z5XRzc/_apis/resources/Containers/177558","type":"actions_storage","name":"github-pages","url":"https://pipelines.actions.githubusercontent.com/jOLGc9JPBcAvEMZE0pB81t9ChTRNtIF3ANoYkTNjqEC5z5XRzc/_apis/pipelines/1/runs/2/artifacts?artifactName=github-pages","expiresOn":"2022-06-06T[14](https://github.com/AceKiron/portfolio/runs/6745517291?check_suite_focus=true#step:7:15):49:25.4263898Z","items":null}]}
Creating deployment with payload:
{
	"artifact_url": "https://pipelines.actions.githubusercontent.com/jOLGc9JPBcAvEMZE0pB81t9ChTRNtIF3ANoYkTNjqEC5z5XRzc/_apis/pipelines/1/runs/2/artifacts?artifactName=github-pages&%24expand=SignedContent",
	"pages_build_version": "cc257a9dc63c45[16](https://github.com/AceKiron/portfolio/runs/6745517291?check_suite_focus=true#step:7:17)85c38f5ff6d2a80354a09feb",
	"oidc_token": "***"
}
Failed to create deployment for cc257a9dc63c451685c38f5ff6d2a80354a09feb.
{"message":"Resource not accessible by integration","documentation_url":"https://docs.github.com/rest/reference/repos#create-a-github-pages-deployment"}
Error: Error: Request failed with status code 403
Error: Error: Request failed with status code 403

@AceKiron
Copy link
Author

AceKiron commented Jun 7, 2022

Got this fixed by using an entirely different action.

@AceKiron AceKiron closed this as completed Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant